I'm running into a bug with adding a second address. It seems to be a problem with naming the street address fields.
I am using Community 5.2.2, and it shows up both in the source downloads and in the Tomcat bundle.
The following steps should replicate the problem:
1. Log in as any user. It is easiest to see if the user has no addresses registered
2. Go to "My Account"
3. Select "Addresses"
4. Fill in the address fields that are shown by default.
5. Click the "+" symbol to add a new address.
At this point, I get an error in my Tomcat logs--a java.lang.IllegalArgumentException--that comes from a json service problem.
6. Fill in the new address information, click "Save"
7. My first address will save correctly.
My second address will save the city, zip code, type, and the mailing checkbox. It will then throw an error and ask me to enter a valid street. Now if I re-enter the address, it will save correctly.
You can also move step 6 (clicking "Save") to before you add a new address (step 5) and it gives the same errors.
The problem that I see is that in the first address, the Street Address 1 field has a value of "addressStreet10." In the second address, all of the Street Address values have input values of "addressStreet2," while the code is looking for something that would be like "addressStreet12."
It seems that the JavaScript call to create a new address isn't working quite right. Any help would be great.
Please sign in to flag this as inappropriate.