Subject: | The version of Widget/Form/Select is broken with RT 4.4.x |
Date: | Fri, 8 Sep 2017 10:40:11 -0500 |
To: | bug-RT-Extension-HistoryFilter [...] rt.cpan.org |
From: | Kenneth Marshall <ktm [...] rice.edu> |
Hi,
The Widget/Form/Select file distributed with version 2.01 is broken
with regards to the refresh interval tags. Here is a diff between
the 2 versions:
diff -u src/RT-Extension-HistoryFilter-2.01/html/Widgets/Form/Select src/rt-4.4.2/share/html/Widgets/Form/Select
--- src/RT-Extension-HistoryFilter-2.01/html/Widgets/Form/Select 2014-08-26 04:03:21.000000000 -0500
+++ src/rt-4.4.2/share/html/Widgets/Form/Select 2017-07-12 09:23:39.000000000 -0500
@@ -2,7 +2,7 @@
%#
%# COPYRIGHT:
%#
-%# This software is Copyright (c) 1996-2014 Best Practical Solutions, LLC
+%# This software is Copyright (c) 1996-2017 Best Practical Solutions, LLC
%# <sales@bestpractical.com>
%#
%# (Except where explicitly superseded by other copyright notices)
@@ -91,7 +91,7 @@
% foreach my $v( @Values ) {
% my $selected = '';
% $selected = 'selected="selected"' if delete $CurrentValue{ $v };
-<option value="<% $v %>" <% $selected |n %>><% loc($ValuesLabel{ $v } || $v) %></option>
+<option value="<% $v %>" <% $selected |n %>><% loc(ref($ValuesLabel{ $v }) ? @{ $ValuesLabel{ $v } } : $ValuesLabel{ $v } || $v) %></option>
% }
% if ( $Alternative ) {
@@ -120,7 +120,7 @@
}
unless (defined $DefaultLabel ) {
$DefaultLabel = loc('Use system default ([_1])',
- join ', ', map loc($ValuesLabel{$_} || $_), grep defined,
+ join ', ', map loc(ref($ValuesLabel{$_}) ? @{ $ValuesLabel{$_ }} : $ValuesLabel{$_} || $_), grep defined,
@DefaultValue
);
}
Regards,
Ken