Fix bug when modifying an order with an address in a country with a state

This commit is contained in:
Raphael Michel
2021-02-09 18:23:24 +01:00
parent 25c35b0f73
commit b630174f72
2 changed files with 4 additions and 1 deletions

View File

@@ -343,7 +343,7 @@ var form_handlers = function (el) {
$("select[name$=state]:not([data-static])").each(function () {
var dependent = $(this),
counter = 0,
dependency = $(this).closest("form").find('select[name$=country]'),
dependency = $(this).closest(".panel-body, form").find('select[name$=country]'),
update = function (ev) {
counter++;
var curCounter = counter;