When opening the modal to edit the shipping for an order, and cancelling without saving the changes, the selected carrier is not reset properly. Thus, when you open the modal again, the selected carrier is incorrect.
The tracking number is reset, but the carrier is not.
Expected behavior
When I click on "cancel" and reopen the modal, the selected carrier should always be the current carrier of the order.
Steps to reproduce
Prerequisite: you have more than 1 carrier available for an order.
Steps to reproduce:
Open an order
On the Carriers tab click on Edit
Pick another carrier in the dropdown
Click cancel
Open the edit modal again => the wrong carrier is selected.
PrestaShop version(s) where the bug happened
1.7.8.3
PHP version(s) where the bug happened
7.4
If your bug is related to a module, specify its name and its version
I reproduce the issue with PS1778, PS1783 and develop, but it looks like cache issue to me.
Ping @PrestaShop/product-team wdyt of this issue? is it valid issue?
Prerequisites
Describe the bug and add screenshots
When opening the modal to edit the shipping for an order, and cancelling without saving the changes, the selected carrier is not reset properly. Thus, when you open the modal again, the selected carrier is incorrect.
The tracking number is reset, but the carrier is not.
Expected behavior
When I click on "cancel" and reopen the modal, the selected carrier should always be the current carrier of the order.
Steps to reproduce
Prerequisite: you have more than 1 carrier available for an order.
Steps to reproduce:
PrestaShop version(s) where the bug happened
1.7.8.3
PHP version(s) where the bug happened
7.4
If your bug is related to a module, specify its name and its version
No response