-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Description
Preconditions (*)
Tested in this versions:
- Magento 2.4.8
- Magento Developer branch
Description (*)
When using the mass action feature to update product attributes, the system fails to properly validate the Special Price date fields. As a result, products are being saved even when the Special Price Start Date is later than the to Date.
Screenshot 1:
<img width="1924" height="923" alt="Image" src="https://github.com/user-attachments/assets/17630fc8-e94e-4ba7-a3f2-fca0095ac669" /]
Steps to reproduce (*)
- Access magento admin panel.
- Navigate to Catalog > Products to open the product grid.
- Select one or more products using the checkbox.
- From the Actions dropdown, choose Update Attributes.
- In the Special Price section, set the Special Price From Date to a date that comes after the Special Price To Date, then click Save. the product will be saved without any validation error
Expected result (*)
Product should not be saved when the Special Price From Date is set to a date after the Special Price To Date during mass action update. A validation error should be displayed .
Actual result (*)
Product is being saved successfully even when the Special Price From Date is set after the Special Price To Date, and no validation error is shown.
Additional information(*)
When navigating to the product edit page and setting the Special Price From Date to a date after the Special Price To Date, then it works properly, the product is not being saved, and a validation error message is displayed.
Screenshot 2:
[img width="1924" height="923" alt="Image" src="https://github.com/user-attachments/assets/61f253de-9fb2-49e2-9a80-d58e8f7144b7" />
Metadata
Metadata
Assignees
Labels
Type
Projects
Status