use strict;
use parent qw(SL::Controller::Base);
+use List::MoreUtils qw(any);
+
use SL::JSON;
use SL::DBUtils;
use SL::Helper::Flash;
}
$self->{shipto}->trans_id($self->{cv}->id);
- if( $self->{shipto}->shiptoname ne '' ) {
+ if(any { $self->{shipto}->$_ ne '' } qw(shiptoname shiptodepartment_1 shiptodepartment_2 shiptostreet shiptozipcode shiptocity shiptocountry shiptogln shiptocontact shiptophone shiptofax shiptoemail)) {
$self->{shipto}->save(cascade => 1);
}