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

When a profile is set inactive via Edit form, civicrm_uf_join entries remain

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.1
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      Steps to reproduce:

      1) Create a profile. Select one or more options to create a uf_join record (i.e., "User Registration")
      2) Edit the profile. Uncheck the "Active?" checkbox.
      3) Check contents of civicrm_uf_join table. Entries still exist for the uf_group_id of the disabled profile, and are set is_active=1 , which is potentially misleading.

      Note that the problem does NOT occur if the profile is disabled via the "Disable" link on the overview page.

      The bug is contained in CRM/UF/Form/Group.php

      Patch against 2.0.5 is attached.

      An improved workflow would warn the user that join entries are being deleted, and ask for confirmation, just like the working 'Disable' link does now, but this patch solves the immediate problem.

        Attachments

          Activity

            People

            • Assignee:
              yashodha Yashodha Chaku
              Reporter:
              mchapman2000 Matt Chapman
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

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