PrestaShop / PrestaShop

PrestaShop is the universal open-source software platform to build your e-commerce solution.
https://www.prestashop-project.org/
Other
8.13k stars 4.8k forks source link

"Edit shipping details" modal does not reset carrier dropdown value on cancel #27745

Open fire2 opened 2 years ago

fire2 commented 2 years ago

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:

  1. Open an order
  2. On the Carriers tab click on Edit
  3. Pick another carrier in the dropdown
  4. Click cancel
  5. 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

No response

hibatallahAouadni commented 2 years ago

Hello @fire2

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?

Thanks!