]> wagnertech.de Git - kivitendo-erp.git/commitdiff
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 c8cdcebd3df6c3db6024c5eb8928edfa0544e8e6..b3a65680f819ac08cae9bb910ea7a69587124185 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();
 }