- # field data comes from dropdown box
- ($form->{customername}, $form->{customer_id}) = split(/--/, $form->{customer});
- } elsif ($form->{customer}) {
-
- # a value was added in the input box, we only want to filter for one
- # customer, so check that a unique customer can be found
-
- # check_name is executed with no_select => 1, if the result isn't unique
- # quit with an error message, the user has to enter a new name
-
- # Without no_select selecting a customer causes an update which doesn't
- # return anything, which is the reason for this workaround
-
- &check_name('customer', no_select => 1);
-
- # $form->{customer_id} was already set by check_name
- $form->{customername} = $form->{customer};
- };
+ # Felddaten kommen aus Dropdownbox
+ my $dummy;
+ ($dummy, $form->{customer_id}) = split(/--/, $form->{customer});
+ }