mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 04:57:07 -04:00
Cards, custom fields are displayed in alphabetic order
This should fix #3367
This commit is contained in:
parent
451acb1c30
commit
4cbc3cb71f
1 changed files with 5 additions and 1 deletions
|
@ -689,7 +689,7 @@ Cards.helpers({
|
|||
|
||||
// match right definition to each field
|
||||
if (!this.customFields) return [];
|
||||
return this.customFields.map(customField => {
|
||||
const ret = this.customFields.map(customField => {
|
||||
const definition = definitions.find(definition => {
|
||||
return definition._id === customField._id;
|
||||
});
|
||||
|
@ -715,6 +715,10 @@ Cards.helpers({
|
|||
definition,
|
||||
};
|
||||
});
|
||||
if (ret.definition !== undefined) {
|
||||
ret.sort((a, b) => a.definition.name.localeCompare(b.definition.name));
|
||||
}
|
||||
return ret;
|
||||
},
|
||||
|
||||
colorClass() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue