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

hook_civicrm_managed leaves stale entity when last declaration disappears

    Details

    • Type: New Feature
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.2.7
    • Fix Version/s: 4.2.8
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      When an extension declares an entity via hook_civicrm_managed, it's inserted. When the declaration is removed from the hook, the entity should also be removed from the hook. This happens correctly if there are still some other (unrelated) entities declared by the hook; but if a module doesn't have any entities at all, then the cleanup doesn't work correctly.

      Discovered while working on CRM-11736.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                timotten Tim Otten
                Reporter:
                timotten Tim Otten
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: