]> wagnertech.de Git - mfinanz.git/blobdiff - SL/AM.pm
Typos in RB Druckvorlagen Englisch
[mfinanz.git] / SL / AM.pm
index df8bf23e510f5414a6baf0ffcf5309919264e54f..67c3c2060e2fa7f0922768b49158dbc5891b1af4 100644 (file)
--- a/SL/AM.pm
+++ b/SL/AM.pm
@@ -547,7 +547,7 @@ sub save_lead {
     $query = qq|UPDATE leads SET
                 lead = ?
                 WHERE id = ?|;
-    puhs(@values, $form->{id});
+    push(@values, $form->{id});
   } else {
     $query = qq|INSERT INTO leads
                 (lead)
@@ -1509,6 +1509,10 @@ sub convert_unit {
   $main::lxdebug->enter_sub(2);
   my ($this, $a, $b, $all_units) = @_;
 
+  if (!$all_units) {
+    $all_units = $this->retrieve_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};