Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 4.8.0-b1
-
Component/s: Staff Interface
-
Labels:None
Description
When editing a coupon as an admin for the company, you can change the company in the drop-down of the upper-right to a different company, then set packages and save the coupon. This will move it to the new company. However, coupons should not move companies.
- Update the Coupons model to disallow the company_id to be set on edit
- Update the edit coupon controller to redirect to the coupon listing page if the coupon provided does not belong to the current company ID.