X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/ce73964f91267ab5eecb2832765efbb3752c2a59..e6d132a190fc0777413850d82a807babf944bba0:/SL/Controller/CustomerVendor.pm diff --git a/SL/Controller/CustomerVendor.pm b/SL/Controller/CustomerVendor.pm index f2efeb014..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); @@ -1205,9 +1205,7 @@ sub _pre_render { $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; }