mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-20 01:39:57 +00:00
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:
@@ -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]:
|
||||
|
||||
Reference in New Issue
Block a user