mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-15 04:45:09 +00:00
fix: Get db values as dict when checking for thumbnail in existing web item
This commit is contained in:
@@ -51,7 +51,8 @@ def execute():
|
||||
filters={
|
||||
"item_code": item.item_code
|
||||
},
|
||||
fieldname=["website_image", "thumbnail", "name"]
|
||||
fieldname=["website_image", "thumbnail", "name"],
|
||||
as_dict=True
|
||||
)[0]
|
||||
|
||||
if web_item_doc.get("website_image") and not web_item_doc.get("thumbnail"):
|
||||
|
||||
Reference in New Issue
Block a user