mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-09-03 20:52:57 -05:00
Allow a value of 0 rows per page to mean "no paging". Allow rows to be added on any page.
Fixes #1356
This commit is contained in:
@@ -523,6 +523,10 @@ Did you forget to register it?"""
|
||||
)
|
||||
|
||||
try:
|
||||
if pref.min_val is not None and int(value) < int(pref.min_val):
|
||||
value = pref.min_val
|
||||
if pref.max_val is not None and int(value) > int(pref.max_val):
|
||||
value = pref.max_val
|
||||
pref.set(value)
|
||||
except Exception as e:
|
||||
current_app.logger.exeception(e)
|
||||
|
||||
Reference in New Issue
Block a user