fix: sort fields to move checkboxes to the end in filter area (#35440)
This commit is contained in:
parent
54a5b559cc
commit
9ff5f39c74
1 changed files with 11 additions and 0 deletions
|
|
@ -1219,6 +1219,17 @@ class FilterArea {
|
|||
})
|
||||
);
|
||||
|
||||
// sort fields to move checkboxes at the end
|
||||
fields.sort((a, b) => {
|
||||
if (a.fieldtype === "Check" && b.fieldtype !== "Check") {
|
||||
return 1;
|
||||
} else if (a.fieldtype !== "Check" && b.fieldtype === "Check") {
|
||||
return -1;
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
});
|
||||
|
||||
fields.map((df) => {
|
||||
this.list_view.page.add_field(df, this.standard_filters_wrapper);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue