diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2015-07-09 22:32:26 -0700 |
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2015-07-09 22:32:26 -0700 |
| commit | 026dc7ad72ba972f230b6709e31fa64397d75ad4 (patch) | |
| tree | c5af1a7ac9154744afc3660e9a9405892f2bb50b /rt/share/html/Elements/SelectTimeUnits | |
| parent | 07b4bc84d1078f7390221d766cdb3142513db4b0 (diff) | |
| parent | 1c538bfabc2cd31f27067505f0c3d1a46cba6ef0 (diff) | |
merge RT 4.2.11 and Header changes to disable RT javascript, RT#34237
Diffstat (limited to 'rt/share/html/Elements/SelectTimeUnits')
| -rwxr-xr-x | rt/share/html/Elements/SelectTimeUnits | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rt/share/html/Elements/SelectTimeUnits b/rt/share/html/Elements/SelectTimeUnits index 660e5c7fa..da5376b5d 100755 --- a/rt/share/html/Elements/SelectTimeUnits +++ b/rt/share/html/Elements/SelectTimeUnits @@ -46,17 +46,17 @@ %# %# 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> -<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; -my $HoursDefault = RT->Config->Get('DefaultTimeUnitsToHours', $session{'CurrentUser'}); </%INIT> <%ARGS> $Name => '' +$Default => RT->Config->Get('DefaultTimeUnitsToHours', $session{'CurrentUser'}) ? 'hours' : 'minutes' </%ARGS> |
