From 2bf0ab079ac02c4a91a275c96c957f577be4ef09 Mon Sep 17 00:00:00 2001 From: Akhil Narang Date: Mon, 1 Apr 2024 19:08:11 +0530 Subject: [PATCH] feat(customize_form): allow setting `creation` as a default sort field (#25760) Signed-off-by: Akhil Narang --- frappe/custom/doctype/customize_form/customize_form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/custom/doctype/customize_form/customize_form.js b/frappe/custom/doctype/customize_form/customize_form.js index 92765653df..bb485d96b5 100644 --- a/frappe/custom/doctype/customize_form/customize_form.js +++ b/frappe/custom/doctype/customize_form/customize_form.js @@ -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); } },