projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rt 4.2.13 ticket#13852
[freeside.git]
/
rt
/
share
/
html
/
Elements
/
SelectTimeUnits
diff --git
a/rt/share/html/Elements/SelectTimeUnits
b/rt/share/html/Elements/SelectTimeUnits
index
f6e7c9b
..
b0d4676
100755
(executable)
--- a/
rt/share/html/Elements/SelectTimeUnits
+++ b/
rt/share/html/Elements/SelectTimeUnits
@@
-2,7
+2,7
@@
%#
%# COPYRIGHT:
%#
%#
%# COPYRIGHT:
%#
-%# This software is Copyright (c) 1996-201
3
Best Practical Solutions, LLC
+%# This software is Copyright (c) 1996-201
6
Best Practical Solutions, LLC
%# <sales@bestpractical.com>
%#
%# (Except where explicitly superseded by other copyright notices)
%# <sales@bestpractical.com>
%#
%# (Except where explicitly superseded by other copyright notices)
@@
-46,17
+46,17
@@
%#
%# END BPS TAGGED BLOCK }}}
<select class="TimeUnits" id="<% $Name %>" name="<% $Name %>">
%#
%# END BPS TAGGED BLOCK }}}
<select class="TimeUnits" id="<% $Name %>" name="<% $Name %>">
-<option value="minutes" <% $
HoursDefault ? '' : 'selected="selected"
' |n%>>
+<option value="minutes" <% $
Default eq 'minutes' ? 'selected="selected"' : '
' |n%>>
<% loc('Minutes') %>
</option>
<% loc('Minutes') %>
</option>
-<option value="hours" <% $
HoursDefault
? 'selected="selected"' : '' |n%>>
+<option value="hours" <% $
Default eq 'hours'
? 'selected="selected"' : '' |n%>>
<% loc('Hours') %>
</option>
</select>
<%INIT>
$Name .= '-TimeUnits' unless $Name =~ /-TimeUnits$/io;
<% loc('Hours') %>
</option>
</select>
<%INIT>
$Name .= '-TimeUnits' unless $Name =~ /-TimeUnits$/io;
-my $HoursDefault = RT->Config->Get('DefaultTimeUnitsToHours', $session{'CurrentUser'});
</%INIT>
<%ARGS>
$Name => ''
</%INIT>
<%ARGS>
$Name => ''
+$Default => RT->Config->Get('DefaultTimeUnitsToHours', $session{'CurrentUser'}) ? 'hours' : 'minutes'
</%ARGS>
</%ARGS>