fix: use .get() to set fieldtype
This commit is contained in:
parent
8f3209c5e9
commit
5b5d8031ce
1 changed files with 1 additions and 1 deletions
|
|
@ -507,7 +507,7 @@ class BaseDocument(object):
|
|||
value = values[fetch_from_fieldname]
|
||||
if _df.fieldtype == 'Small Text' or _df.fieldtype == 'Text' or _df.fieldtype == 'Data':
|
||||
fetch_from_df = frappe.get_meta(doctype).get_field(fetch_from_fieldname)
|
||||
fetch_from_ft = fetch_from_df and fetch_from_df.fieldtype
|
||||
fetch_from_ft = fetch_from_df.get('fieldtype')
|
||||
|
||||
if fetch_from_ft == 'Text Editor' and value:
|
||||
value = unescape_html(strip_html(value))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue