瀏覽代碼
fix: ignore if df doesn't exist (#18358) (#18360)
(cherry picked from commit b03e0752b9
)
Co-authored-by: Ankush Menat <ankush@frappe.io>
version-14
mergify[bot]
2 年之前
committed by
GitHub
沒有發現已知的金鑰在資料庫的簽署中
GPG Key ID: 4AEE18F83AFDEB23
共有
1 個文件被更改,包括
3 次插入 和
0 次删除
-
frappe/public/js/frappe/ui/field_group.js
|
|
@@ -169,6 +169,9 @@ frappe.ui.FieldGroup = class FieldGroup extends frappe.ui.form.Layout { |
|
|
|
} |
|
|
|
|
|
|
|
set_df_property(fieldname, prop, value) { |
|
|
|
if (!fieldname) { |
|
|
|
return; |
|
|
|
} |
|
|
|
const field = this.get_field(fieldname); |
|
|
|
field.df[prop] = value; |
|
|
|
field.refresh(); |
|
|
|