[Rt-commit] r19219 - rt/3.999/trunk/share/html/Widgets
sartak at bestpractical.com
sartak at bestpractical.com
Wed Apr 15 23:22:46 EDT 2009
Author: sartak
Date: Wed Apr 15 23:22:46 2009
New Revision: 19219
Modified:
rt/3.999/trunk/share/html/Widgets/FinalizeWidgetArguments
Log:
Handle RT4 style foo_bar style arguments in FinalizeWidgetArguments
Modified: rt/3.999/trunk/share/html/Widgets/FinalizeWidgetArguments
==============================================================================
--- rt/3.999/trunk/share/html/Widgets/FinalizeWidgetArguments (original)
+++ rt/3.999/trunk/share/html/Widgets/FinalizeWidgetArguments Wed Apr 15 23:22:46 2009
@@ -48,14 +48,24 @@
<%init>
my %args = %$widget_arguments;
- %args = (%args, %{ $args{Callback}->() }) if $args{Callback};
+ %args = (%args, %{ $args{Callback}->() }) if $args{Callback}; # XXX: should be removed once RT4ization has lowercased all of these
+ %args = (%args, %{ $args{callback}->() }) if $args{callback};
+
$args{'description'} = _( $args{'description'} ) if $args{'description'};
$args{'hints'} = _( $args{'hints'} ) if $args{'hints'};
+
+ # XXX: should be removed once RT4ization has lowercased all of these
if ( $args{'ValuesLabel'} ) {
while (my ($k, $v) = each %{ $args{'ValuesLabel'} } ) {
$args{'ValuesLabel'}->{$k} = _( $args{'ValuesLabel'}->{$k} );
}
}
+
+ if ( $args{'values_label'} ) {
+ while (my ($k, $v) = each %{ $args{'values_label'} } ) {
+ $args{'values_label'}->{$k} = _( $args{'values_label'}->{$k} );
+ }
+ }
return \%args;
</%init>
More information about the Rt-commit
mailing list