fix: Message field mandtory even after unchecking collect progress checkbox (#22594)
Message field mandtory even after unchecking collect progress checkbox
This commit is contained in:
@@ -119,9 +119,7 @@ frappe.ui.form.on("Project", {
|
||||
},
|
||||
|
||||
collect_progress: function(frm) {
|
||||
if (frm.doc.collect_progress) {
|
||||
frm.set_df_property("message", "reqd", 1);
|
||||
}
|
||||
frm.set_df_property("message", "reqd", frm.doc.collect_progress);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -140,4 +138,4 @@ function open_form(frm, doctype, child_doctype, parentfield) {
|
||||
frappe.ui.form.make_quick_entry(doctype, null, null, new_doc);
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user