Patch attached. Also, ShowTime is not currently used but
since time is currently shown, then the default should be
true. :)

-Todd
--- html/Elements/SelectDate    (revision 8005)
+++ html/Elements/SelectDate    (local)
@@ -46,7 +46,7 @@
 <script type="text/javascript"><!--
     onLoadHook('createCalendarLink("<% $Name %>");');
 --></script>
-<input type="text" id="<% $Name %>" name="<% $Name %>" value="<% $Default %>" 
size="<% $Size %>" />
+<input type="text" id="<% $Name %>" name="<% $Name %>" value="<% $Value %>" 
size="<% $Size %>" />
 <%init>
 unless ((defined $Default) or 
        ($current <= 0)) {
@@ -56,6 +56,7 @@
                            $year+1900,$mon+1,$mday,                            
                            $hour,$min);   
 }
+$Value = $Value || $Default;
 
 unless ($Name) {
        $Name = $menu_prefix. "_Date";
@@ -64,10 +65,11 @@
 
 <%args>
 
-$ShowTime => undef
+$ShowTime => 1
 $menu_prefix=>''
 $current=>time
 $Default => ''
+$Value => ''
 $Name => undef
 $Size => 16
 </%args>
=== html/Elements/SelectDate
==================================================================
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


We're hiring! Come hack Perl for Best Practical: 
http://bestpractical.com/about/jobs.html

Reply via email to