Closed ericclaeren closed 3 years ago
Hi, It seems the formatAddress() breaks the preview functionality and setting the correct addition value.
https://github.com/experius/Magento-2-Module-Experius-Postcode-NL/compare/1.3.4...1.7.0#diff-beb6d976e0f41c9953ccbacb72f20d30419a2d8208bb335920a4bfa1dc63bc98R559
This line:
var houseNoAdd = overrideData.housenumber_addition || formData.experius_postcode_housenumber_addition_manual;
Only seems to set the addition from the manual selection. This probably should be:
var houseNoAdd = overrideData.housenumber_addition || formData.experius_postcode_housenumber_addition || formData.experius_postcode_housenumber_addition_manual;
Hi @barryvdh @ericclaeren Your PR will cause the manual field to be set even if its hidden, i've added my own PR with the correct fix.
Fixed in release 1.8.2, PR #60
Great! Thanks!
Hi, It seems the formatAddress() breaks the preview functionality and setting the correct addition value.
https://github.com/experius/Magento-2-Module-Experius-Postcode-NL/compare/1.3.4...1.7.0#diff-beb6d976e0f41c9953ccbacb72f20d30419a2d8208bb335920a4bfa1dc63bc98R559
This line:
Only seems to set the addition from the manual selection. This probably should be: