Author: erwan
Date: Wed Jul 21 12:14:08 2010
New Revision: 966203
URL:
http://svn.apache.org/viewvc?rev=966203&view=revLog:
if a time-dropdown has no value then 00:00 is displayed instead of the current time
Modified:
ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/MacroFormRenderer.java
Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/MacroFormRenderer.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/MacroFormRenderer.java?rev=966203&r1=966202&r2=966203&view=diff==============================================================================
--- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/MacroFormRenderer.java (original)
+++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/MacroFormRenderer.java Wed Jul 21 12:14:08 2010
@@ -571,7 +571,7 @@ public class MacroFormRenderer implement
// if we have an input method of time-dropdown, then render two
// dropdowns
- if ("time-dropdown".equals(dateTimeField.getInputMethod())) {
+ if ("time-dropdown".equals(dateTimeField.getInputMethod()) && UtilValidate.isNotEmpty(value)) {
className = modelFormField.getWidgetStyle();
classString = (className != null ? className : "");
isTwelveHour = "12".equals(dateTimeField.getClock());