fix: Use sort_by field instead of non-existent sort_field
To get proper form navigation
This commit is contained in:
parent
13eab84189
commit
0d33ca1c60
1 changed files with 2 additions and 2 deletions
|
|
@ -1102,13 +1102,13 @@ frappe.ui.form.Form = class FrappeForm {
|
|||
let list_view = frappe.get_list_view(this.doctype);
|
||||
if (list_view) {
|
||||
filters = list_view.get_filters_for_args();
|
||||
sort_field = list_view.sort_field;
|
||||
sort_field = list_view.sort_by;
|
||||
sort_order = list_view.sort_order;
|
||||
} else {
|
||||
let list_settings = frappe.get_user_settings(this.doctype)['List'];
|
||||
if (list_settings) {
|
||||
filters = list_settings.filters;
|
||||
sort_field = list_settings.sort_field;
|
||||
sort_field = list_settings.sort_by;
|
||||
sort_order = list_settings.sort_order;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue