[Rt-commit] r18866 - rt/3.999/branches/datetime/share/html/Elements

sartak at bestpractical.com sartak at bestpractical.com
Thu Mar 19 17:04:00 EDT 2009


Author: sartak
Date: Thu Mar 19 17:03:59 2009
New Revision: 18866

Modified:
   rt/3.999/branches/datetime/share/html/Elements/SelectDate

Log:
Handle unset RT::DateTime in SelectDate

Modified: rt/3.999/branches/datetime/share/html/Elements/SelectDate
==============================================================================
--- rt/3.999/branches/datetime/share/html/Elements/SelectDate	(original)
+++ rt/3.999/branches/datetime/share/html/Elements/SelectDate	Thu Mar 19 17:03:59 2009
@@ -47,6 +47,8 @@
 %# END BPS TAGGED BLOCK }}}
 <input type="text" id="<% $name %>" name="<% $name %>" class="datetime" value="<% $value %>" size="<% $size %>" />
 <%init>
+undef $default if ref($default) && !$default->is_set;
+
 if (!defined($default) && $current > 0) {
 	my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) =
                                             localtime($current);


More information about the Rt-commit mailing list