-
-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
States pull down menu error when creating account (#5711)
Fixes issue #5707 When submitting create account form, message 'Please select a state from the States pull down menu.' appears although state field (input text) has been properly filled. Only when 'Configuration>Customers Details>State field - Display as pulldown when possible?' is set to false and has zones defined.
- Loading branch information
Showing
2 changed files
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e3c022f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked that and found another way fix both original and new bug.
Precedent commit adding -- && ACCOUNT_STATE_DRAW_INITIAL_DROPDOWN === 'true'-- should be removed and line (87 for Checkout_new_address.php and 206 for create_account.php) should be changed from
((trim($state) != '' && $zone_id == 0) ? "(upper(zone_name) like ':zoneState%' OR upper(zone_code) like '%:zoneState%') OR " : "") .
to
((trim($state) != '' && $zone_id == false) ? "(upper(zone_name) like ':zoneState%' OR upper(zone_code) like '%:zoneState%') OR " : "") .
Please have a look at it.