Beim Speichern von Angeboten etc den Bearbeiter nicht aus $form->{employee} ableiten...
authorMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 29 May 2007 11:18:06 +0000 (11:18 +0000)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 29 May 2007 11:18:06 +0000 (11:18 +0000)
SL/OE.pm

index 3800e33..d302311 100644 (file)
--- a/SL/OE.pm
+++ b/SL/OE.pm
@@ -187,7 +187,7 @@ sub save {
   my $all_units = AM->retrieve_units($myconfig, $form);
   $form->{all_units} = $all_units;
 
-  ($null, $form->{employee_id}) = split /--/, $form->{employee};
+  $form->{employee_id} = (split /--/, $form->{employee})[1] if !$form->{employee_id};
   unless ($form->{employee_id}) {
     $form->get_employee($dbh);
   }