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

This commit is contained in:
Anand Doshi 2016-03-10 17:50:27 +05:30
parent 34bb97c69d
commit b181b81ebf

View file

@ -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;
}
});