[rt-users] RT 3.6 Date fields for Create.html are not sticky
Todd Chapman
todd at chaka.net
Tue Jul 25 16:10:24 EDT 2006
Patch attached. Also, ShowTime is not currently used but
since time is currently shown, then the default should be
true. :)
-Todd
-------------- next part --------------
--- 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
==================================================================
More information about the rt-users
mailing list