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

Membership Detail report doesn't show all memberships

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.5.6, 4.6
    • Fix Version/s: 4.6
    • Component/s: CiviMail, CiviReport
    • Labels:
      None
    • Documentation Required?:
      None

      Description

      The Membership Detail report has a hard-coded GROUP BY statement to group by contact_id and membership_type_id. That means that if a contact has two or more memberships of the same type, only one will appear. I recognize that some parts of the code attempt to prevent this scenario, but several folks have use cases where this makes sense (Eileen recently wrote a blog post about this). However, even if this use case SHOULD be disallowed, I don't see the argument for the GROUP BY.

      So no matter how you slice it, I believe this is a bug. I'd gladly patch this by removing the GroupBy function. However, someone went to the trouble of writing this code, so they must have had a reason. I'll submit a patch unless someone can tell me the use case in which it makes sense to group by these fields on this report.

        Attachments

          Activity

            People

            • Assignee:
              kurund Kurund Jalmi
              Reporter:
              palantejon Jon K Goldberg
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: