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

Broken smart groups due to CRM-16858

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.6.5
    • Fix Version/s: 4.6.6
    • Component/s: None
    • Labels:
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding

      Description

      There was a regression on searches in 4.6.5 which was resolved in CRM-16858 (which is marked minor but really should be major, which warrants a quick release of 4.6.6. I've seen several stack exchange posts and customer issues).

      Unfortunately the fix for CRM-16858 doesn't work for smart groups created using event search prior to CRM-16858 being added as the data stored in civicrm_saved_search needs to be updated

      Pre-CRM-16858 the array form_values would hole the key
      'participant_status_id' => array(2 => 1, 5 => 1)

      Post CRM-16858 it needs to be
      'participant_status_id' => array('IN' => array(2 , 5))

      Note that the contents of the WHERE field are unaffected & I do somewhat wonder the way the values are stored as form_values is a bit fragile

        Attachments

          Activity

            People

            • Assignee:
              monish.deb Monish Deb
              Reporter:
              eileen Eileen McNaughton
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: