Selaa lähdekoodia

Update global_search.py

version-14
Rushabh Mehta 7 vuotta sitten
committed by pratu16x7
vanhempi
commit
f66cfcece5
1 muutettua tiedostoa jossa 1 lisäystä ja 2 poistoa
  1. +1
    -2
      frappe/utils/global_search.py

+ 1
- 2
frappe/utils/global_search.py Näytä tiedosto

@@ -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


Ladataan…
Peruuta
Tallenna