From: Sven Schöling Date: Fri, 14 Oct 2011 08:22:13 +0000 (+0200) Subject: $::all_units in $::request gecacht. X-Git-Tag: release-2.7.0beta1~219 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=a064deaf7fb181680130a873efc5fb895fe7ba35;p=kivitendo-erp.git $::all_units in $::request gecacht. --- diff --git a/SL/AM.pm b/SL/AM.pm index ba15e7f84..ab712c852 100644 --- a/SL/AM.pm +++ b/SL/AM.pm @@ -1386,13 +1386,13 @@ sub retrieve_all_units { my $self = shift; - if (!$main::all_units) { - $main::all_units = $self->retrieve_units(\%main::myconfig, $main::form); + if (!$::request->{cache}{all_units}) { + $::request->{cache}{all_units} = $self->retrieve_units(\%main::myconfig, $main::form); } $main::lxdebug->leave_sub(); - return $main::all_units; + return $::request->{cache}{all_units}; }