projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cdd666f
)
L.select_tag muss auch ohne .as_list vmethod mit 1-Element Listen kalr kommen
author
Sven Schöling
<s.schoeling@linet-services.de>
Fri, 11 Oct 2013 12:09:35 +0000
(14:09 +0200)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Fri, 11 Oct 2013 12:09:35 +0000
(14:09 +0200)
behebt #2376
SL/Presenter/Tag.pm
patch
|
blob
|
history
diff --git
a/SL/Presenter/Tag.pm
b/SL/Presenter/Tag.pm
index
43591e5
..
924ab8b
100644
(file)
--- 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;