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
(cherry picked from commit 25692a3)
  • Loading branch information
ankush authored and mergify[bot] committed Feb 3, 2024
1 parent 73c66ce commit 8b00460
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 8b00460

Please sign in to comment.