Description
Preconditions (*)
- Seen on Magento 2.2.3, 2.3.2 and 2.3, 2.4-develop (7cf99d1), so probably all M2 versions are affected
Steps to reproduce (*)
-
Setup some vanilla Magento
-
Login to the backend
-
Create 3 customers: 'One One', 'Two Two' and 'Three Three':
<img width="486" alt="Screenshot 2019-08-28 at 20 05 17" src="https://user-images.githubusercontent.com/85479/63881267-b98dc500-c9cf-11e9-8669-8dc78cfb98c7.png"] -
In the 'Search by keyword' box, enter 'one' and search
-
In the first column, choose the 'Select All' option
-
Notice that one record is selected:
[img width="421" alt="Screenshot 2019-08-28 at 20 06 11" src="https://user-images.githubusercontent.com/85479/63881435-21441000-c9d0-11e9-949c-d2a56c865649.png"] -
Remove the 'one' keyword search by pressing the 'x' icon to the right of it.
-
Notice that it now says that one record is selected, but visually all records have a checkmark:
[img width="424" alt="Screenshot 2019-08-28 at 20 06 24" src="https://user-images.githubusercontent.com/85479/63881521-518bae80-c9d0-11e9-819d-794096cd597a.png"]
=> this is probably the main bug, but it gets even worse
-
Select Actions => Delete
-
Notice that it says it will remove 1 record:
[img width="692" alt="Screenshot 2019-08-28 at 20 06 36" src="https://user-images.githubusercontent.com/85479/63881616-87309780-c9d0-11e9-8a77-b37ebaea6768.png"] -
Press OK
-
Notice that it now removed all records (3) instead of the 1 it claimed to delete before yikes!
[img width="441" alt="Screenshot 2019-08-28 at 20 06 47" src="https://user-images.githubusercontent.com/85479/63881704-b6df9f80-c9d0-11e9-99d9-690560719c9e.png">
Note that the exact same thing can be reproduced with the product grid (and maybe other grids as well in Magento).
Expected result (*)
- After removing the keyword search, it should only keep 1 record selected, not all of them
Actual result (*)
- Shop owners calling in panic that they unintentionally removed all their customers/products somehow