Open edvardsr opened 6 days ago
Hi @edvardsr. Thank you for your report. To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:
@magento give me 2.4-develop instance
- upcoming 2.4.x release@magento I am working on this
Join Magento Community Engineering Slack and ask your questions in #github channel. :warning: According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting. :clock10: You can find the schedule on the Magento Community Calendar page. :telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.
Hi @engcom-Bravo. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
Area: XXXXX
label to the ticket, indicating the functional areas it may be related to.2.4-develop
branch@magento give me 2.4-develop instance
to deploy test instance on Magento infrastructure. 2.4-develop
branch, please, add the label Reproduced on 2.4.x
.Issue: Confirmed
once verification is complete.
Preconditions and environment
For testing purposes, 7 inventory sources were added manually, making the total amount of sources be 8:
Each of them had identical settings:
Steps to reproduce
This is the source assignment that is expected after saving:
Expected result
4 checkboxes should be checked after checking the 4th checkbox.
Actual result
All checkboxes are checked. This is the issue.
This issue forces users to employ the workaround of unchecking the newly checked checkboxes.
If all the three newly checkboxes are unchecked afterwards and a fourth one is to be checked again, the issue no longer occurs. However, the issue does occur again if the user clicks "Cancel" and re-opens the "Assign Sources" dialog.
Additional information
No console errors or warnings appear while reproducing this issue.
Screenshots are from Magento 2.4.7-p2 community edition installed with composer with no customizations or additional modules.
The root of the issue appears to be that already selected sources are passed to the "selected" observable in multiselect.js, leading to the wrong assumption 6 records are selected instead of 4 after the 4th checkbox is checked, leading to a selectAll call in the updateState function.
Release note
No response
Triage and priority