diff --git a/templates/web/pages/product_edit/product_edit_form_packagings.tt.html b/templates/web/pages/product_edit/product_edit_form_packagings.tt.html index 91bbe0e11feeb..49b33197d5d4e 100644 --- a/templates/web/pages/product_edit/product_edit_form_packagings.tt.html +++ b/templates/web/pages/product_edit/product_edit_form_packagings.tt.html @@ -127,7 +127,7 @@ \$("#packaging_" + packaging_max + "_delete").show(); packaging_max = packaging_max + 1; - \$("#packaging_max").val(packaging_max); + \$('input[name="packaging_max"]').val(packaging_max); var new_packaging_id = "packaging_" + packaging_max; // row 0 is our template row