Skip to content

Commit

Permalink
fix: Correct field
Browse files Browse the repository at this point in the history
  • Loading branch information
balamurali27 committed Sep 13, 2024
1 parent 4509a77 commit 891fc56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpdesk/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def get_count(self, doctype):

def get_records(self, doctype):
records = []
filters = {"published": True} if doctype == "HD Article" else {}
filters = {"status": "Published"} if doctype == "HD Article" else {}
for d in frappe.db.get_all(

Check warning on line 306 in helpdesk/search.py

View check run for this annotation

Codecov / codecov/patch

helpdesk/search.py#L305-L306

Added lines #L305 - L306 were not covered by tests
doctype, filters=filters, fields=self.DOCTYPE_FIELDS[doctype]
):
Expand Down

0 comments on commit 891fc56

Please sign in to comment.