Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-12741

priceset does not delete when referenced by event

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.3.3
    • Fix Version/s: 4.3.4
    • Component/s: None
    • Labels:
      None

      Description

      When you try to delete a priceset, without fields it says
      "Are you sure? All event data will be deleted".

      After saying yes it just gives an error:
      " DB Error: constraint violation "

      What happened is that an Event Template still used it.
      But it does not say that at all.

      And when you look into that Event Template, it just says: <none> Price Set, because it does not show pricesets without fields.

      2 solutions:
      -Force delete pricesets
      -Give a better warning and what a user can do.

        Attachments

          Activity

            People

            • Assignee:
              ravish.nair Ravish Nair
              Reporter:
              catorghans Hans Idink
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: