You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to access the dateUpdated / dateCreated property on Sales / Discounts after I manually save them via custom form on my site. Currently I set those two values in their afterSave events by myself. It would be awesome to be able to remove these events.
Steps to reproduce
Save a sale manually, try to access the dateUpdated / dateCreated attribute and see it's null
Craft CMS version
4.x / 3.x
Craft Commerce version
4.3
The text was updated successfully, but these errors were encountered:
Anubarak
changed the title
[4.x]: Sale / Discount set date updated after save
[4.x]: Sale / Discount set dateUpdated + dateCreated after save
Oct 13, 2023
What happened?
Description
https://github.com/craftcms/commerce/blob/develop/src/services/Sales.php#L546-L547
https://github.com/craftcms/commerce/blob/4.3.0/src/services/Discounts.php#L753-L754
I need to access the
dateUpdated
/dateCreated
property on Sales / Discounts after I manually save them via custom form on my site. Currently I set those two values in theirafterSave
events by myself. It would be awesome to be able to remove these events.Steps to reproduce
dateUpdated
/dateCreated
attribute and see it's nullCraft CMS version
4.x / 3.x
Craft Commerce version
4.3
The text was updated successfully, but these errors were encountered: