fix: use correct filter name in `item_query` (#33814)
(cherry picked from commit da323cbb40)
Co-authored-by: Daizy Modi <modidaizy5217@gmail.com>
This commit is contained in:
@@ -221,7 +221,7 @@ class QualityInspection(Document):
|
||||
def item_query(doctype, txt, searchfield, start, page_len, filters):
|
||||
from frappe.desk.reportview import get_match_cond
|
||||
|
||||
from_doctype = cstr(filters.get("doctype"))
|
||||
from_doctype = cstr(filters.get("from"))
|
||||
if not from_doctype or not frappe.db.exists("DocType", from_doctype):
|
||||
return []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user