allowe account external_id to be unset

3.2
Daniel Tiefnig 14 years ago
parent 48f6d8e2ae
commit 60b9387ede

@ -205,8 +205,9 @@ sub save_account : Local {
my $account_id = $c->request->params->{account_id} || undef; my $account_id = $c->request->params->{account_id} || undef;
my $external_id = $c->request->params->{external_id} || undef; if(defined $c->request->params->{external_id}) {
$settings{external_id} = $external_id if defined $external_id; $settings{external_id} = $c->request->params->{external_id};
}
my $product = $c->request->params->{product}; my $product = $c->request->params->{product};
$settings{product} = $product if defined $product; $settings{product} = $product if defined $product;

Loading…
Cancel
Save