feat(customize_form): allow setting creation as a default sort field (#25760)

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
Akhil Narang 2024-04-01 19:08:11 +05:30 committed by GitHub
parent f8121b99df
commit 2bf0ab079a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -246,7 +246,7 @@ frappe.ui.form.on("Customize Form", {
var fields = $.map(frm.doc.fields, function (df) {
return frappe.model.is_value_type(df.fieldtype) ? df.fieldname : null;
});
fields = ["", "name", "modified"].concat(fields);
fields = ["", "name", "creation", "modified"].concat(fields);
frm.set_df_property("sort_field", "options", fields);
}
},