Make the state field required in cart addresses. Fixes bug #11564.

This commit is contained in:
Colin Kuskie 2010-05-10 16:15:28 -07:00
parent f3010db1b3
commit 6965611994
2 changed files with 2 additions and 1 deletions

View file

@ -8,6 +8,7 @@
- fixed: UserList asset has SQL injection bug - fixed: UserList asset has SQL injection bug
- fixed #11558: wiki results for visitors - fixed #11558: wiki results for visitors
- fixed #11533: Saving entered data at registration - fixed #11533: Saving entered data at registration
- fixed #11564: Shop: Cart does not require a state field in the address
7.9.4 7.9.4
- We're shipping underscore.js now for its suite of extremely handy utility - We're shipping underscore.js now for its suite of extremely handy utility

View file

@ -329,7 +329,7 @@ sub missingFields {
$addressData = $address; $addressData = $address;
} }
my @missingFields = (); my @missingFields = ();
FIELD: foreach my $field (qw/label firstName lastName address1 city code country phoneNumber/) { FIELD: foreach my $field (qw/label firstName lastName address1 city state code country phoneNumber/) {
push @missingFields, $field if $addressData->{$field} eq ''; push @missingFields, $field if $addressData->{$field} eq '';
} }
return @missingFields; return @missingFields;