Description
Preconditions (*)
Tested in this versions:
- Magento 2.4.6-p4
- Magento Developer branch
Description (*)
When navigating to the related, up-sells, or cross-sells products section, and trying to add multiple related/up-sells/cross-sells products by de-selecting some products, from filtered selected products list, then product edit page gets break, and products are not being add.
Steps to reproduce (*)
- Access magento admin panel.
- Add 4000+ products and edit one product ( Add products by using profiler, setup/performance-toolkit/profiles/ce/medium.xml).
- Navigate to the "Related Products, Up-Sells, and Cross-Sells" section and click Add Related Products.
- Click On the “Filters” and filter 60+ products.
- Click on “Select All” and select all filtered products screenshot-1.
- De-select some products from selected products list screenshot-2.
- Click on “Add Selected Products” button and then observe, product edit page gets break and products are not being loaded
Expected result (*)
Related/up-sells/cross-sells product should be add, while de-selecting some products from filtered selected products list
Actual result (*)
Product edit page gets stuck while trying to add products by de-selecting some products from filtered selected products list.
Additional information(*)
The issue occurs when there are 4000+ products, and trying to add products by deselecting some products from the filtered selected products list. As, related, upsell, and cross-sell products are being added properly, when we add all filtered selected products without de-selecting any products, and also products are being add propery while increasing page limit screenshot-4.