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

hook_civicrm_post (civicrm_member_roles_civicrm_post) function is not called when the contact renews their membership through the contribution page

    Details

    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding

      Description

      When a contact renews their membership using a membership renewal contribution page, their updated membership status doesn't trigger a roles sync provided by the civicrm_member_roles module (in Drupal 6). The civicrm_member_roles module is configured to 'Synchronize when membership is updated'.

      When the contact renews their membership the membership status is successfully updated in CiviCRM, but the users role is not updated in Drupal.

      The problem is that the hook_civicrm_post (civicrm_member_roles_civicrm_post) function is not called when the contact renews their membership through the contribution page. So the Drupal module never syncs the new membership status with the Drupal roles.

      A manual sync of the membership status to Drupal roles does update the users role within Drupal.

      I'd be happy to work on a patch for this bug if someone could point me in the right direction.

      Em.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              edc1 Emlyn Christie
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 3 hours
                3h
                Remaining:
                Remaining Estimate - 3 hours
                3h
                Logged:
                Time Spent - Not Specified
                Not Specified