X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=SL%2FController%2FCustomerVendor.pm;h=f9e2515786c1e3b5de937ca154291d5105cb6344;hb=549f187d3a2b1d15f96c4556714666ed954447bb;hp=608803abb32fc33a9cd6b3ae5757bfb1d5dd0c63;hpb=2644d2a93d051b4040354c87c0410ebf494a15df;p=kivitendo-erp.git diff --git a/SL/Controller/CustomerVendor.pm b/SL/Controller/CustomerVendor.pm index 608803abb..f9e251578 100644 --- a/SL/Controller/CustomerVendor.pm +++ b/SL/Controller/CustomerVendor.pm @@ -283,7 +283,7 @@ sub _save { $self->{shipto}->save(cascade => 1); } - if ($self->is_customer && any { $self->{additional_billing_address}->$_ ne '' } @ADDITIONAL_BILLING_ADDRESS_COLUMNS) { + if ($self->is_customer && any { $self->{additional_billing_address}->$_ ne '' } grep { $_ ne 'default_address' } @ADDITIONAL_BILLING_ADDRESS_COLUMNS) { $self->{additional_billing_address}->customer_id($self->{cv}->id); $self->{additional_billing_address}->save(cascade => 1);