Skip to content

Commit

Permalink
fix: Set default for search result limit if empty (#24713)
Browse files Browse the repository at this point in the history
  • Loading branch information
ankush committed Feb 3, 2024
1 parent 0314502 commit 25692a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frappe/core/doctype/system_settings/system_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ def validate(self):
self.validate_backup_limit()
self.validate_file_extensions()

if not self.link_field_results_limit:
self.link_field_results_limit = 10

if self.link_field_results_limit > 50:
self.link_field_results_limit = 50
label = _(self.meta.get_label("link_field_results_limit"))
Expand Down

0 comments on commit 25692a3

Please sign in to comment.