I install the module then click on "Create content → Leave application" and get as default date arguments for leaves and coming back: 1970-01-01
which is far from a possible date for a module under development in 2009. "2010-07-15" would be a better proposal. July is in the middle of the year, so that going backwards or forwards needs, on average, less steps, and 15 is in the middle of the month. Moreover, July is a month where many people really go on holidays.
The list of possible years shouldn't begin before 2008 because I can't imagine a SME using your module to manage retroactively the leaves more than one year backwards.
Comments
Comment #1
alvinlb commentedJust in case anyone else runs into this, edit lines 337 and 343 to have default values of $curdate and $curtodate respectively.
Comment #2
Siva Kranthi Kumar commentedReplace 319 & 320 line with the following code in leavemgt.module
$date1= strtotime("+1 day"); // Use whatever value u want
$date2 = strtotime("+1 day"); // Use whatever value u want