Fix für eini potentielles Randproblem in OE Masken, wenn sehr wenige Kunden im System...
authorSven Schöling <s.schoeling@linet-services.de>
Fri, 29 May 2009 10:01:18 +0000 (10:01 +0000)
committerSven Schöling <s.schoeling@linet-services.de>
Fri, 29 May 2009 10:01:18 +0000 (10:01 +0000)
bin/mozilla/oe.pl

index c8cdceb..b3a6568 100644 (file)
@@ -237,7 +237,10 @@ sub order_links {
   }
 
   $form->{"old$form->{vc}"}  = $form->{$form->{vc}};
-  $form->{"old$form->{vc}"} .= qq|--$form->{"$form->{vc}_id"}| unless ($form->{"old$form->{vc}"} =~ m/--\d+$/);
+
+  if ($form->{"old$form->{vc}"} !~ m/--\d+$/ && $form->{"$form->{vc_}id}"}) {
+    $form->{"old$form->{vc}"} .= qq|--$form->{"$form->{vc}_id"}|
+  }
 
   $lxdebug->leave_sub();
 }