projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rekursive Einbindung von Modulen verhindern.
[kivitendo-erp.git]
/
SL
/
AM.pm
diff --git
a/SL/AM.pm
b/SL/AM.pm
index
7b3b736
..
6c0ea0b
100644
(file)
--- a/
SL/AM.pm
+++ b/
SL/AM.pm
@@
-1515,7
+1515,7
@@
sub save_preferences {
$form->{businessnumber} = $businessnumber;
$form->{businessnumber} = $businessnumber;
-
my
$myconfig = new User($form->{login});
+ $myconfig = new User($form->{login});
foreach my $item (keys %$form) {
$myconfig->{$item} = $form->{$item};
foreach my $item (keys %$form) {
$myconfig->{$item} = $form->{$item};
@@
-1935,9
+1935,10
@@
sub convert_unit {
$main::lxdebug->enter_sub(2);
($this, $a, $b, $all_units) = @_;
$main::lxdebug->enter_sub(2);
($this, $a, $b, $all_units) = @_;
+ $main::lxdebug->leave_sub(2) and return 0 unless $a && $b;
$main::lxdebug->leave_sub(2) and return 0 unless $all_units->{$a} && $all_units->{$b};
$main::lxdebug->leave_sub(2) and return 0 unless $all_units->{$a}{base_unit} eq $all_units->{$b}{base_unit};
$main::lxdebug->leave_sub(2) and return 0 unless $all_units->{$a} && $all_units->{$b};
$main::lxdebug->leave_sub(2) and return 0 unless $all_units->{$a}{base_unit} eq $all_units->{$b}{base_unit};
- $main::lxdebug->leave_sub(2) and return $all_units->{$a}{factor} / $all_units->{$b}{factor};
+ $main::lxdebug->leave_sub(2) and return $all_units->{$a}{factor} / $all_units->{$b}{factor};
}
sub unit_select_data {
}
sub unit_select_data {