Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-3318

Coupons may be updated across companies

    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.

      1. Update the Coupons model to disallow the company_id to be set on edit
      2. Update the edit coupon controller to redirect to the coupon listing page if the coupon provided does not belong to the current company ID.

        Activity

        tyson Tyson Phillips (Inactive) created issue -
        tyson Tyson Phillips (Inactive) made changes -
        Field Original Value New Value
        Rank Ranked higher
        tyson Tyson Phillips (Inactive) made changes -
        Sprint 4.8.0 Sprint 5 [ 96 ]
        Automated transition triggered when Jonathan Reissmueller created a branch in Stash -
        Status Open [ 1 ] In Progress [ 3 ]
        Automated transition triggered when Jonathan Reissmueller created pull request #767 in Stash -
        Status In Progress [ 3 ] In Review [ 5 ]
        Resolution Fixed [ 1 ]
        jonathan Jonathan Reissmueller made changes -
        Remaining Estimate 0 minutes [ 0 ]
        Time Spent 15 minutes [ 900 ]
        Worklog Id 12768 [ 12768 ]
        Automated transition triggered when Tyson Phillips (Inactive) merged pull request #767 in Stash -
        Status In Review [ 5 ] Closed [ 6 ]
        tyson Tyson Phillips (Inactive) made changes -
        Link This issue is duplicated by CORE-3316 [ CORE-3316 ]

          People

          • Assignee:
            jonathan Jonathan Reissmueller
            Reporter:
            tyson Tyson Phillips (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              23/Dec/19

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 15 minutes
              15m

                Agile