]> wagnertech.de Git - kivitendo-erp.git/blobdiff - bin/mozilla/is.pl
is_templates: Kundenauswahl ohne dropdown fix.
[kivitendo-erp.git] / bin / mozilla / is.pl
index d6c5d8b1b4baa6d4f6aa6163f1f5401fb6637bab..797c2600246c59ca15b4e8f861da1fb575c16f8d 100644 (file)
@@ -168,8 +168,15 @@ sub invoice_links {
     $form->{customer}         = qq|$form->{customer}--$form->{"customer_id"}|;
   }
 
-  $form->{oldcustomer} = "$form->{customer}--$form->{customer_id}";
-  $form->{selectcustomer} = 1;
+  $form->{"oldcustomer"}  = $form->{customer};
+
+  if ($form->{"oldcustomer"} !~ m/--\d+$/ && $form->{"customer_id"}) {
+    $form->{"oldcustomer"} .= qq|--$form->{"customer_id"}|
+  }
+
+
+#  $form->{oldcustomer} = "$form->{customer}--$form->{customer_id}";
+#  $form->{selectcustomer} = 1;
 
   $form->{employee} = "$form->{employee}--$form->{employee_id}";