Bugfix:
authorSven Schöling <s.schoeling@linet-services.de>
Wed, 5 Mar 2008 15:15:14 +0000 (15:15 +0000)
committerSven Schöling <s.schoeling@linet-services.de>
Wed, 5 Mar 2008 15:15:14 +0000 (15:15 +0000)
customer wurde nicht mehr richtig gesetzt was bugs bie der anzeige erzeugt hat.

bin/mozilla/oe.pl

index 9c3b2fd..3cda960 100644 (file)
@@ -229,8 +229,11 @@ sub order_links {
   $form->{employee}    = "$form->{employee}--$form->{employee_id}";
 
   # build vendor/customer drop down comatibility... don't ask
-  $form->{"old$form->{vc}"} = $form->{vc};
-  $form->{"select$form->{vc}"} = 1;
+  $form->{"old$form->{vc}"}    = $form->{vc};
+  if (@{ $form->{"all_$form->{vc}"} }) {
+    $form->{"select$form->{vc}"} = 1;
+    $form->{$form->{vc}}         = qq|$form->{$form->{vc}}--$form->{"$form->{vc}_id"}|;
+  }
 
   $lxdebug->leave_sub();
 }