fix(dialog): send default value in dialog
This commit is contained in:
parent
249adb0680
commit
e33097fd35
1 changed files with 1 additions and 1 deletions
|
|
@ -142,7 +142,7 @@ frappe.ui.FieldGroup = class FieldGroup extends frappe.ui.form.Layout {
|
|||
for (let key in this.fields_dict) {
|
||||
let f = this.fields_dict[key];
|
||||
if (f.get_value) {
|
||||
let v = f.get_value();
|
||||
let v = f.get_value() || f.df.default;
|
||||
if (f.df.reqd && is_null(typeof v === "string" ? strip_html(v) : v))
|
||||
errors.push(__(f.df.label));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue