Update global_search.py
This commit is contained in:
parent
1a3d0bb459
commit
f66cfcece5
1 changed files with 1 additions and 2 deletions
|
|
@ -309,8 +309,7 @@ def search(text, start=0, limit=20, doctype=""):
|
|||
for r in results:
|
||||
try:
|
||||
if frappe.get_meta(r.doctype).image_field:
|
||||
doc = frappe.get_doc(r.doctype, r.name)
|
||||
r.image = doc.get(doc.meta.image_field)
|
||||
r.image = frappe.db.get_value(r.doctype, r.name, frappe.get_meta(r.doctype).image_field)
|
||||
except:
|
||||
frappe.clear_messages()
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue