X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FWidgets%2FForm%2FSelect;h=da771b20f5363fa7388239559814421b76fc961a;hb=44dd00a3ff974a17999e86e64488e996edc71e3c;hp=438f9ccd71d694880442634b52c7ca2cf0d733ce;hpb=f3c4966ed1f6ec3db7accd6dcdd3a5a3821d72a7;p=freeside.git diff --git a/rt/share/html/Widgets/Form/Select b/rt/share/html/Widgets/Form/Select index 438f9ccd7..da771b20f 100644 --- a/rt/share/html/Widgets/Form/Select +++ b/rt/share/html/Widgets/Form/Select @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2019 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -80,18 +80,18 @@ $AlternativeLabel => loc('other...'), $Multiple => 0, -> % if ( $Default ) { % my $selected = ''; -% $selected = 'selected="selected"' unless @CurrentValue; +% $selected = 'selected="selected"' unless $CurrentValue[0]; % } % foreach my $v( @Values ) { % my $selected = ''; % $selected = 'selected="selected"' if delete $CurrentValue{ $v }; - + % } % if ( $Alternative ) { @@ -120,7 +120,7 @@ if ( $ValuesCallback ) { } 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 ); }