Closed (fixed)
Project:
Commerce Core
Version:
8.x-2.x-dev
Component:
Promotions
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
3 Mar 2017 at 10:08 UTC
Updated:
23 Mar 2017 at 14:24 UTC
Jump to comment: Most recent
There are some open issues unde this:
- #2857372: Create backreference field for promotion on coupons
- #2857374: Extend Promotion entity class with method for Coupons
- #2855838: Deleting a promotion does not delete its coupons
And, as Bojan suggested, it's best to have one PR for this.
It also helps with some possible conflicts for code and updates needed.
p.s. I will add them as child issues for this
Comments
Comment #2
vasikePR available with solution for the child issues
https://github.com/drupalcommerce/commerce/pull/660
Extra: it seems the CouponsFieldPostUpdateTest was broken
https://github.com/drupalcommerce/commerce/pull/660/commits/3bc2de5d17e2...
Extra commit there so maybe we could get a green for PR.
Comment #3
bojanz commentedDunno if this is a better title, but let's try it.
Comment #5
bojanz commentedThanks! After discussing with mglaman we agreed to remove the getCouponsCodes() and hasCouponCode() methods. Other small tweaks were applied.