From cadaf4399df866e8dd9772c6b747126208d55aa8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Mon, 21 Aug 2017 16:08:47 +0200 Subject: [PATCH] =?utf8?q?CustomVariables:=20all=5Fconfig=20cache=20korrek?= =?utf8?q?t=20behandeln=20f=C3=BCr=20=C3=BCberladene=20Module?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/DB/Helper/CustomVariables.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SL/DB/Helper/CustomVariables.pm b/SL/DB/Helper/CustomVariables.pm index 0b55e7ed4..bf0616c04 100644 --- a/SL/DB/Helper/CustomVariables.pm +++ b/SL/DB/Helper/CustomVariables.pm @@ -182,9 +182,9 @@ sub _all_configs { $cache->{module} = { partition_by { $_->module } @$configs }; } - $params{module} - ? $cache->{module}{$params{module}} - : $cache->{all}; + return $params{module} && !ref $params{module} ? $cache->{module}{$params{module}} + : $params{module} && ref $params{module} ? [ map { @{ $cache->{module}{$_} } } @{ $params{module} } ] + : $cache->{all}; } sub _overload_by_module { -- 2.20.1