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:
Akshay Joshi
2016-06-16 09:57:44 +01:00
committed by Dave Page
parent b8d0f410df
commit f9393aee44
3 changed files with 171 additions and 56 deletions
+4
View File
@@ -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)