Closed (fixed)
Project:
Commerce Core
Version:
8.x-2.x-dev
Component:
Order
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
1 Nov 2016 at 00:23 UTC
Updated:
15 Nov 2016 at 01:34 UTC
Jump to comment: Most recent
1) The placed timestamp is set in commerce_order_commerce_order_presave() and does some hacky logic to determine the transition, even though we now have transition events.
2) The completed timestamp is never set.
Let's fix that.
Comments
Comment #2
bojanz commentedActually, can't use the event for "completed" since that happens under different transitions.
Thinking about it more, we can just maintain both timestamps in Order::preSave(), it makes sense since that class owns the timestamps anyway.
Comment #4
bojanz commentedDid the event subscriber for placed and preSave for completed, couldn't be done otherwise.