From 999cace76fbcb8721e8c9106dd4164f241593d4e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Wed, 23 Aug 2017 16:16:20 +0200 Subject: [PATCH] =?utf8?q?CustomVariables:=20Beim=20Cachen=20von=20=C3=BCb?= =?utf8?q?erlagerten=20Invalids=20k=C3=B6nnen=20mehrere=20module=20auftauc?= =?utf8?q?hen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/DB/Helper/CustomVariables.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SL/DB/Helper/CustomVariables.pm b/SL/DB/Helper/CustomVariables.pm index e8adfe8ba..78edce5e3 100644 --- a/SL/DB/Helper/CustomVariables.pm +++ b/SL/DB/Helper/CustomVariables.pm @@ -380,7 +380,8 @@ sub _all_invalids { # easy 2: no module in params? no validity return [] unless $params{module}; - my @module_configs = grep { $_->module eq $params{module} } @$configs; + my %wanted_modules = ref $params{module} ? map { $_ => 1 } @{ $params{module} } : ($params{module} => 1); + my @module_configs = grep { $wanted_modules{$_->module} } @$configs; return [] unless @module_configs; -- 2.20.1