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

Include / Exclude custom Search does not work properly

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.3.7
    • Fix Version/s: 4.4.4
    • Component/s: CiviCRM Search
    • Labels:

      Description

      Dear all,

      the Include / Exclude custom Search does not work properly when you include a Smart Group that has "OR" as a Search Operator.

      I could reproduce the error on the demo installation:

      1. go to advanced search, choose "OR" as search operator
      2. in "Complete OR Partial Name" enter "a", under "Contribution|Contribution Date" select "this year"
      3. click search and create a smart group from the search results
      4. go to "custom Searches|Include / Exclude Search"
      5. include the dynamic group you just created, hit search

      Result: The result will use the search criteria from the smart group but ignores the "OR" operator and uses the "AND" operator instead. This means, You will only get contact that fullfill all the search criteria - in our case all contacts that have "a" in their name and donated this year.

      I have posted this issue in the CiviCRM Forum before and Lobo suspects it has to do with the smart group cache - please have a look here:
      http://forum.civicrm.org/index.php/topic,30313.0.html

      Regards
      Fabian

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              fabian (systopia) Fabian Schuttenberg
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

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