From: Sven Schöling Date: Fri, 11 Oct 2013 12:09:35 +0000 (+0200) Subject: L.select_tag muss auch ohne .as_list vmethod mit 1-Element Listen kalr kommen X-Git-Tag: release-3.1.0beta1~59 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=ddaaf1ddfa1ab9351101a2dda89f3ba763ebd1a2;p=kivitendo-erp.git L.select_tag muss auch ohne .as_list vmethod mit 1-Element Listen kalr kommen behebt #2376 --- diff --git a/SL/Presenter/Tag.pm b/SL/Presenter/Tag.pm index 43591e5de..924ab8b57 100644 --- a/SL/Presenter/Tag.pm +++ b/SL/Presenter/Tag.pm @@ -146,6 +146,10 @@ sub select_tag { my $list_to_code = sub { my ($sub_collection) = @_; + if ('ARRAY' ne ref $sub_collection) { + $sub_collection = [ $sub_collection ]; + } + my @options; foreach my $entry ( @{ $sub_collection } ) { my $value;