$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);
$self->{template_args} ||= {};
- $::request->{layout}->add_javascripts('kivi.CustomerVendor.js');
- $::request->{layout}->add_javascripts('kivi.File.js');
- $::request->{layout}->add_javascripts('kivi.CustomerVendorTurnover.js');
+ $::request->{layout}->add_javascripts("$_.js") for qw (kivi.CustomerVendor kivi.File kivi.CustomerVendorTurnover ckeditor/ckeditor ckeditor/adapters/jquery);
$self->_setup_form_action_bar;
}