fix: potential mismatch between meta and formmeta
This commit is contained in:
parent
fe3e5021a4
commit
d2fe49c0c2
1 changed files with 3 additions and 1 deletions
|
|
@ -44,7 +44,9 @@ def get_meta(doctype, cached=True) -> "FormMeta":
|
|||
meta = FormMeta(doctype, cached=False)
|
||||
frappe.client_cache.set_value(key, meta)
|
||||
else:
|
||||
meta = FormMeta(doctype)
|
||||
# NOTE: In developer mode use cached `Meta` for better DX
|
||||
# In prod don't use cached meta when explicitly requesting from DB.
|
||||
meta = FormMeta(doctype, cached=frappe.conf.developer_mode)
|
||||
|
||||
return meta
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue