fix: mandatory fields validation on new form from js
This commit is contained in:
parent
90c8e3e258
commit
fb20b0ee2d
1 changed files with 1 additions and 0 deletions
|
|
@ -148,6 +148,7 @@ frappe.ui.form.save = function (frm, action, callback, btn) {
|
|||
});
|
||||
|
||||
if (frm.is_new() && frm.meta.autoname === 'Prompt' && !frm.doc.__newname) {
|
||||
has_errors = true;
|
||||
error_fields = [__('Name'), ...error_fields];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue