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

If Membership End Date is NULL, getMembershipStatusByDate fails to give right status

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 4.4.3
    • Fix Version/s: 4.4.4
    • Component/s: CiviMember
    • Labels:
      None

      Description

      So, with my tests, I've been adding a user to a membership that is an organizational membership using Relationships to apply the memberships to users.

      What happens is the relationship has no end date, and the membership is a life time membership. going into CRM_Member_BAO_MembershipStatus::getMembershipStatusByDate() $endDate is NULL.

      When it goes through customFormat... it then becomes 00000. This means several of the calculations for dates actually turns into something based off of 1999-31-12 (2000-02-29 in the case of New).

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: