Skip to content

Commit

Permalink
fix!: make system generated fields unsortable
Browse files Browse the repository at this point in the history
  • Loading branch information
sagarvora committed Mar 10, 2023
1 parent 43b5d95 commit 9a88acf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frappe/custom/doctype/customize_form/customize_form.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ frappe.ui.form.on("Customize Form", {

setup_sortable: function (frm) {
frm.doc.fields.forEach(function (f) {
if (!f.is_custom_field) {
if (!f.is_custom_field || f.is_system_generated) {
f._sortable = false;
}

Expand Down

0 comments on commit 9a88acf

Please sign in to comment.