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

Membership End Date not calculated properly for fixed period MembershipTypes

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.3.7
    • Fix Version/s: 4.3.9, 4.4.2
    • Component/s: CiviMember
    • Labels:
      None

      Description

      Please see: http://forum.civicrm.org/index.php/topic,30672.0.html

      End Date for fixed period Membership types is calculated based on Member Since ($joinDate) instead of based on Start Date of the current Membership ($startDate). This leads to wrong $endDates - which leads to wrong statuses - which leads to wrong Drupal roles (when using CiviMember Roles Sync).

      I believe this can be fixed as follows:

      edits to: CRM/Member/BAO/MembershipType.php

      patch for 4.2:
      https://github.com/CiviCRM42/civicrm42-core/pull/54/files

      patch for 4.3.7(attached):

        Attachments

        1. before_after_patch.png
          63 kB
          KarinG
        2. CRM-13786.patch
          2 kB
          KarinG
        3. Screen Shot 2013-11-19 at 9.52.38 PM.PNG
          41 kB
          David Greenberg
        4. startdate.patch
          1 kB
          KarinG

          Activity

            People

            • Assignee:
              dgg David Greenberg
              Reporter:
              KarinG KarinG
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: