X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FWidgets%2FFinalizeWidgetArguments;h=f742fb4548db78ad5e762f82550a2bcd435af7e9;hb=44dd00a3ff974a17999e86e64488e996edc71e3c;hp=00fa82ebe595da774c9690f6801826d9a449ea3f;hpb=fc6209f398899f0211cfcedeb81a3cd65e04a941;p=freeside.git diff --git a/rt/share/html/Widgets/FinalizeWidgetArguments b/rt/share/html/Widgets/FinalizeWidgetArguments index 00fa82ebe..f742fb454 100644 --- a/rt/share/html/Widgets/FinalizeWidgetArguments +++ b/rt/share/html/Widgets/FinalizeWidgetArguments @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2011 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2019 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -52,9 +52,10 @@ $args{'Description'} = loc( $args{'Description'} ) if $args{'Description'}; $args{'Hints'} = loc( $args{'Hints'} ) if $args{'Hints'}; if ( $args{'ValuesLabel'} ) { - while (my ($k, $v) = each %{ $args{'ValuesLabel'} } ) { - $args{'ValuesLabel'}->{$k} = loc( $args{'ValuesLabel'}->{$k} ); - } + my %labels; + $labels{$_} = loc( $args{'ValuesLabel'}->{$_} ) + for keys %{$args{'ValuesLabel'}}; + $args{'ValuesLabel'} = \%labels; } return \%args;