fix: disable pagination in draft link lookup

frappe.get_list defaults to 20 rows; child-table joins can produce
duplicate parent names that fill the window and hide further drafts.
Also clarify the check-ordering regression test.
This commit is contained in:
Nabin Hait
2026-07-22 12:06:00 +05:30
parent 7d351153bb
commit c522a1fdae
2 changed files with 5 additions and 2 deletions

View File

@@ -21,7 +21,7 @@ class DraftLinkFinder:
names: set[str] = set()
for filters in self._link_filters():
names.update(frappe.get_list(self.target_doctype, filters=filters, pluck="name"))
names.update(frappe.get_list(self.target_doctype, filters=filters, pluck="name", limit=0))
return sorted(names)
def _link_filters(self) -> Iterator[list]: