From: Sven Schöling Date: Mon, 21 Aug 2017 14:08:47 +0000 (+0200) Subject: CustomVariables: all_config cache korrekt behandeln für überladene Module X-Git-Tag: release-3.5.4~860 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=cadaf4399df866e8dd9772c6b747126208d55aa8;p=kivitendo-erp.git CustomVariables: all_config cache korrekt behandeln für überladene Module --- 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 {