From: Sven Schöling Date: Mon, 19 Sep 2011 15:32:53 +0000 (+0200) Subject: $::all_units nicht in MoreCommon benutzen. X-Git-Tag: release-2.7.0beta1~279 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=af16cfe65e669bd9ab1535c9ef6639753cfae7d0;p=kivitendo-erp.git $::all_units nicht in MoreCommon benutzen. --- diff --git a/SL/MoreCommon.pm b/SL/MoreCommon.pm index ded6ddf32..bb31f2def 100644 --- a/SL/MoreCommon.pm +++ b/SL/MoreCommon.pm @@ -61,8 +61,7 @@ sub compare_numbers { my ($a, $a_unit, $b, $b_unit) = @_; - $main::all_units ||= AM->retrieve_units(\%main::myconfig, $main::form); - my $units = $main::all_units; + my $units = AM->retrieve_all_units; if (!$units->{$a_unit} || !$units->{$b_unit} || ($units->{$a_unit}->{base_unit} ne $units->{$b_unit}->{base_unit})) { $main::lxdebug->leave_sub();