View Issue Details

IDProjectCategoryView StatusLast Update
0003350OXID eShop (all versions)1.03. Basket, checkout processpublic2012-12-10 13:23
Reporterleofonic 
PriorityhighSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version4.5.4 revision 39463 
Target VersionFixed in Version4.6.0_beta2 
Summary0003350: The first state from the list is lost during checkout
DescriptionWhen in the Address area form user selects the first state from the list during checkout, the state is saved and displayed correctly in order overview. When the user returns to place another order, his address is diplayed correctly in step 2. When moving to step 3 without changing the address, the state is deleted from the user.
Steps To Reproduce1. Create a user and select the first state in the dropdown.
2. Log in as this user and go through order steps 1-4 without opening the "change address" form.
3. In step 4, the state is gone
4. In backend, the state also has disappeared from user address
Additional InformationThis might be solved with 0002680. If so, could you please provide the solution?
TagsOrder
ThemeAzure
BrowserAll
PHP Versionany
Database Versionany

Activities

leofonic

2011-12-16 07:30

reporter   ~0005500

Is it possible to provide a quickfix for this?

mindaugas.rimgaila

2011-12-22 16:26

reporter   ~0005525

Fix:
   File: /out/azure/src/js/widgets/oxcountrystateselect.js
      Replace the function "addSelectOptions" with this:

        addSelectOptions: function(oSelect, aValues, aLables, selectedStateId)
        {
            for(var x = 0; x < aValues.length; x++) {
                if (selectedStateId == aValues[x]) {
                    oSelect.
                    append($('<option selected="selected"></option>').
                    attr("value",aValues[x]).
                    text(aLables[x]));
                } else {
                    oSelect.
                    append($("<option></option>").
                    attr("value",aValues[x]).
                    text(aLables[x]));
                }
            }
            return oSelect;
        },