fix: set valid parent for mandatory_depends_on evaluation (#37912)
This commit is contained in:
parent
5bb27bda8d
commit
dbcd940089
1 changed files with 1 additions and 1 deletions
|
|
@ -201,7 +201,7 @@ frappe.ui.form.check_mandatory = function (frm) {
|
|||
if (df.mandatory_depends_on && doc) {
|
||||
let out = null;
|
||||
let expression = df.mandatory_depends_on;
|
||||
let parent = frappe.get_meta(df.parent);
|
||||
let parent = frm.doc;
|
||||
|
||||
if (typeof expression === "boolean") {
|
||||
out = expression;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue