mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-25 09:38:31 +00:00
fix: Get db values as dict when checking for thumbnail in existing web item
(cherry picked from commit 46a5a83789)
This commit is contained in:
@@ -53,7 +53,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