Opened 6 years ago

Closed 5 years ago

#2278 closed defect (fixed)

Add new address page throws error on a country without a state

Reported by: Kurt Endress Owned by: Kay Kittell
Priority: medium Milestone: Server 2.0.5
Component: Public Website 2 Version: N/A
Severity: Keywords:
Cc: Database Engine: N/A
Operating System: N/A

Description

When entering an address for a country without states, such as Hong Kong, the Add new address page (useraddress.aspx) throws an error: Input string was not in a correct format.

Change History (3)

comment:1 by Kay Kittell, 6 years ago

Milestone: → Server 2.0.5
Status: new → addressed

comment:2 by Kay Kittell, 6 years ago

Revised code in useraddress.cs so that if a country that doesn't have any states/provinces, such as Hong Kong, the geography_id that's used for saving the shipping address is taken from the country's geography_id, rather than just always using the geography_id that's found in the state field.

comment:3 by Kurt Endress, 5 years ago

Resolution: → fixed
Status: addressed → closed
Note: See TracTickets for help on using tickets.