From ddaaf1ddfa1ab9351101a2dda89f3ba763ebd1a2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Fri, 11 Oct 2013 14:09:35 +0200 Subject: [PATCH] L.select_tag muss auch ohne .as_list vmethod mit 1-Element Listen kalr kommen behebt #2376 --- SL/Presenter/Tag.pm | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.20.1