[Seaside] WADateSelector FIX
Dmitry Dorofeev
dima-sender-3c337a at yasp.com
Wed Aug 31 11:26:55 CEST 2005
Hi all,
Hopefully i found a bug and fixed it.
It was impossible to choose some dates (like 31 December and many others)
becouse of incorrect month validation.
Menu for months is generated as 1 to: 12
but month check was >=0 and < 12.
fix is attached.
-Dmitry.
-------------- next part --------------
'From Squeak3.8 of ''5 May 2005'' [latest update: #6665] on 31 August 2005 at 1:20:54 pm'!
!WADateSelector methodsFor: 'as yet unclassified' stamp: 'DVD 8/31/2005 13:18'!
privateIsValidDay: theDay monthNumber: theMonth year: theYear
| maxDay |
theMonth > 0 & (theMonth <= 12) ifFalse: [^false].
maxDay := Month daysInMonth: theMonth forYear: theYear.
^theDay > 0 & (theDay <= maxDay)! !
More information about the Seaside
mailing list