Skip to content

Commit

Permalink
fix: use correct filter name in item_query (backport frappe#33814) (f…
Browse files Browse the repository at this point in the history
…rappe#33817)

fix: use correct filter name in `item_query` (frappe#33814)

(cherry picked from commit da323cb)

Co-authored-by: Daizy Modi <modidaizy5217@gmail.com>
  • Loading branch information
mergify[bot] and DaizyModi authored Jan 25, 2023
1 parent 1b11566 commit b38ad66
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def calculate_mean(self, reading):
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 []

Expand Down

0 comments on commit b38ad66

Please sign in to comment.