$::all_units in $::request gecacht.
authorSven Schöling <s.schoeling@linet-services.de>
Fri, 14 Oct 2011 08:22:13 +0000 (10:22 +0200)
committerSven Schöling <s.schoeling@linet-services.de>
Fri, 14 Oct 2011 10:40:48 +0000 (12:40 +0200)
SL/AM.pm

index ba15e7f..ab712c8 100644 (file)
--- 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};
 }