You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ca...@apache.org on 2007/03/13 14:44:36 UTC
svn commit: r517697 -
/myfaces/tomahawk/branches/1_1_5/core/src/main/java/org/apache/myfaces/custom/date/HtmlInputDate.java
Author: cagatay
Date: Tue Mar 13 06:44:35 2007
New Revision: 517697
URL: http://svn.apache.org/viewvc?view=rev&rev=517697
Log:
Fix for TOMAHAWK-903, Thanks to Zdenek Sochor for the patch
Modified:
myfaces/tomahawk/branches/1_1_5/core/src/main/java/org/apache/myfaces/custom/date/HtmlInputDate.java
Modified: myfaces/tomahawk/branches/1_1_5/core/src/main/java/org/apache/myfaces/custom/date/HtmlInputDate.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/branches/1_1_5/core/src/main/java/org/apache/myfaces/custom/date/HtmlInputDate.java?view=diff&rev=517697&r1=517696&r2=517697
==============================================================================
--- myfaces/tomahawk/branches/1_1_5/core/src/main/java/org/apache/myfaces/custom/date/HtmlInputDate.java (original)
+++ myfaces/tomahawk/branches/1_1_5/core/src/main/java/org/apache/myfaces/custom/date/HtmlInputDate.java Tue Mar 13 06:44:35 2007
@@ -326,7 +326,7 @@
}
private boolean isDateSubmitted(boolean usesAmpm, String type) {
- boolean isDateSubmitted = ! (StringUtils.isEmpty(getDay()) && getMonth().equals("-1") && StringUtils.isEmpty(getYear()));
+ boolean isDateSubmitted = ! (StringUtils.isEmpty(getDay()) && ((getMonth() == null) || getMonth().equals("-1")) && StringUtils.isEmpty(getYear()));
if(usesAmpm)
isDateSubmitted = isDateSubmitted || isAmpmSubmitted();
return isDateSubmitted;