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

Deleting membership types do not remove price field values from online membership forms

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.7.24
    • Fix Version/s: 4.7.25
    • Component/s: None
    • Labels:
      None
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      User and Admin Doc
    • Funding Source:
      Contributed Code
    • Verified?:
      No
    • How it works currently:
      Selecting the deleted membership type will create a successful contribution, but no membership is created.
    • How it should work:
      The membership type should be removed from the available price field options.
    • Acceptance Criteria:
      Hide
      Remove records from price_field_value table where membership_type_id IS NULL and price field is associated with a membership for a data cleanup.

      Deleting a membership type should perform an ON DELETE CASCADE instead of ON DELETE SET NULL on the price_field_value table
      Show
      Remove records from price_field_value table where membership_type_id IS NULL and price field is associated with a membership for a data cleanup. Deleting a membership type should perform an ON DELETE CASCADE instead of ON DELETE SET NULL on the price_field_value table

      Description

      Steps to replicate.

      1. Create an online membership form by enabling membership section and selecting the various membership types to be used.
      2. Now delete one of the membership types from the backend.
      3. The membership type is still displayed on the form.

      Selecting this membership type will create a successful contribution, but no membership is created.

        Attachments

          Activity

            People

            • Assignee:
              monish.deb Monish Deb
              Reporter:
              edsel Edsel Lopez
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: