瀏覽代碼

Update global_search.py

version-14
Rushabh Mehta 7 年之前
committed by pratu16x7
父節點
當前提交
f66cfcece5
共有 1 個檔案被更改,包括 1 行新增2 行删除
  1. +1
    -2
      frappe/utils/global_search.py

+ 1
- 2
frappe/utils/global_search.py 查看文件

@@ -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…
取消
儲存