projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
258bf9a
)
$::all_units nicht in MoreCommon benutzen.
author
Sven Schöling
<s.schoeling@linet-services.de>
Mon, 19 Sep 2011 15:32:53 +0000
(17:32 +0200)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Mon, 19 Sep 2011 15:32:53 +0000
(17:32 +0200)
SL/MoreCommon.pm
patch
|
blob
|
history
diff --git
a/SL/MoreCommon.pm
b/SL/MoreCommon.pm
index
ded6ddf
..
bb31f2d
100644
(file)
--- 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();