X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=rt%2Fshare%2Fhtml%2FWidgets%2FFinalizeWidgetArguments;h=87f3ae083825b4229606d8b34b2701dd73c3d31e;hb=f421a622461d5259804f0da238f349f4a790d91f;hp=00fa82ebe595da774c9690f6801826d9a449ea3f;hpb=fc6209f398899f0211cfcedeb81a3cd65e04a941;p=freeside.git diff --git a/rt/share/html/Widgets/FinalizeWidgetArguments b/rt/share/html/Widgets/FinalizeWidgetArguments index 00fa82ebe..87f3ae083 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-2015 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;