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

Search results display duplicates when the contacts have multiple tags

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.5
    • Fix Version/s: 1.5
    • Labels:
      None

      Description

      I've marked this "major" because I've had users try to remove what seem like duplicates from the search results. Unfortunately, they only look like duplicates.

      The problem is joins with the tags table. Records with more than one tag appear more than once because joins returns n x m rows, where n is table one and m is matching rows in table two.

      If MySQL's subquery performance weren't so poor, I would suggest using a subquery. A DISTINCT or DISTINCTROW in the SELECT would probably do the trick, though.

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              davidstrauss David Strauss
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

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