a1dert/lh-tickets-test — Issue #413: No limit set for the maximum number of holidays
Author: a1dert
Created: 2011-11-30 12:14:34+00:00
State: open

Imported from lighthouse. Original ticket at: http://redtape.lighthouseapp.com/projects/59696/tickets/83. Created by Adina Moldovan - 2010-11-19T09:28:31Z

Steps to reproduce:
1.Log into the app as administrator
2.Click on "Settings" link
3.Click on Holiday settings
4.Change the number of maximum holidays for one year

Expected results:
Whatever the user types in, the app should limit the input to a maximum of 3 numbers (if a person is in a 1 year vacation, for example).

Actual results:
The user can insert as many numbers as (s)he wants and the app saves the upper boundary of the data type, which in this case is always 2147483647
The same number is saved also for the "Allow people to borrow extra days if they don't have enough" field