Преглед изворни кода
Merge pull request #11353 from scmmishra/fix-web-form-parent-evaluation
refactor: use this.doc if this.frm is not available
version-14
mergify[bot]
пре 4 година
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 измењених фајлова са
1 додато и
1 уклоњено
-
frappe/public/js/frappe/form/layout.js
|
|
@@ -525,7 +525,7 @@ frappe.ui.form.Layout = Class.extend({ |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
var parent = this.frm ? this.frm.doc : null; |
|
|
|
var parent = this.frm ? this.frm.doc : this.doc || null; |
|
|
|
|
|
|
|
if(typeof(expression) === 'boolean') { |
|
|
|
out = expression; |
|
|
|