[freeside-commits] freeside/httemplate/elements tr-input-date-field.html, 1.1, 1.2

Jeff Finucane,420,, jeff at wavetail.420.am
Tue Oct 17 17:05:37 PDT 2006


Update of /home/cvs/cvsroot/freeside/httemplate/elements
In directory wavetail:/tmp/cvs-serv25510

Modified Files:
	tr-input-date-field.html 
Log Message:
fix ugly null dates

Index: tr-input-date-field.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/elements/tr-input-date-field.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- tr-input-date-field.html	4 Oct 2006 21:22:08 -0000	1.1
+++ tr-input-date-field.html	18 Oct 2006 00:05:34 -0000	1.2
@@ -7,7 +7,7 @@
 <TR>
   <TD ALIGN="right"><% $label %></TD>
   <TD>
-    <INPUT TYPE="text" NAME="<% $name %>" ID="<% $name %>_text" VALUE="<% time2str($format, $value) %>">
+    <INPUT TYPE="text" NAME="<% $name %>" ID="<% $name %>_text" VALUE="<% ($value eq '') ? '' : time2str($format, $value) %>">
     <IMG SRC="../images/calendar.png" ID="<% $name  %>_button" STYLE="cursor: pointer" TITLE="Select date">
   </TD>
 </TR>



More information about the freeside-commits mailing list