Merge pull request #34 from Pear-Trading/finn/AccountUpdateFix

Fixed validation for organisation edit
This commit is contained in:
Finn 2017-08-24 13:21:05 +01:00 committed by GitHub
commit 06e89c9199

View file

@ -124,7 +124,7 @@ sub post_account_update {
if ( defined $user->customer_id ) {
$validation->required('display_name');
$validation->required('full_name');
} elsif ( defined $user->customer_id ) {
} elsif ( defined $user->organisation_id ) {
$validation->required('name');
$validation->required('street_name');
$validation->required('town');