When creating / editing patron categories, it is possible to enter decimal values for enrolment period and age limits, but vaules are stored as integers (rounded up or down). For example it is possible to enter 0.1 for enrolment period, the value stored will be 0, and the table on page "Patron categories" will show a bare 'until' in column 'Enrolment period'. The fields 'Enrolmentperiod', 'Age required' and 'Upperage limit' should accept integers only.
Created attachment 52677 [details] [review] Bug 16795 - Patron categories: Accept integers only for enrolment period and age limits To test: - Apply patch - Clear browser cache - Go to Home > Administration > Patron categories - Create or edit a category - Verify that field 'In months', 'Age required' and 'Upperage limit' accept digits only
Created attachment 52684 [details] [review] [SIGNED-OFF] Bug 16795 - Patron categories: Accept integers only for enrolment period and age limits To test: - Apply patch - Clear browser cache - Go to Home > Administration > Patron categories - Create or edit a category - Verify that field 'In months', 'Age required' and 'Upperage limit' accept digits only Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Created attachment 52826 [details] [review] Bug 16795 - Patron categories: Accept integers only for enrolment period and age limits To test: - Apply patch - Clear browser cache - Go to Home > Administration > Patron categories - Create or edit a category - Verify that field 'In months', 'Age required' and 'Upperage limit' accept digits only Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Pushed to master for 16.11, thanks Marc!
Pushed in 16.05. Will be in 16.05.02.