Quellcode durchsuchen

[fix] mark new row as Custom Field in Customize Form to make it draggable

version-14
Anand Doshi vor 9 Jahren
Ursprung
Commit
b181b81ebf
1 geänderte Dateien mit 4 neuen und 0 gelöschten Zeilen
  1. +4
    -0
      frappe/custom/doctype/customize_form/customize_form.js

+ 4
- 0
frappe/custom/doctype/customize_form/customize_form.js Datei anzeigen

@@ -97,6 +97,10 @@ frappe.ui.form.on("Customize Form Field", {
msgprint(__("Cannot delete standard field. You can hide it if you want"));
throw "cannot delete custom field";
}
},
fields_add: function(frm, cdt, cdn) {
var f = frappe.model.get_doc(cdt, cdn);
f.is_custom_field = 1;
}
});



Laden…
Abbrechen
Speichern