dev/core#1217 Fix for failure to respect event_id (or any?) criteria in smart groups
authoreileen <emcnaughton@wikimedia.org>
Fri, 17 Jan 2020 03:52:11 +0000 (16:52 +1300)
committereileen <emcnaughton@wikimedia.org>
Fri, 17 Jan 2020 03:52:43 +0000 (16:52 +1300)
commit56d513f2ab5557fd58649ce092db38dfd3e002e0
tree97541eaa37249f5e3579732c03c5245a109730f7
parent791930c60476648968aa37ee2f0bc228787f1ffa
dev/core#1217 Fix for failure to respect event_id (or any?) criteria in smart groups

From what I can tell it's possible to create smart groups from Advanced search & other contact searchs & Membership Search & Event search.

Membership search actually just leverages advanced search but Event Search smart group has it's own code & reloads into Event search.

This has been flawed for months but the current iteration is the criteria are not respected. On digging I found the decision was made in
contact search to store the parsed QueryParams (in [field_name, 'IN', [1,2]] format not the formValues. I think this was probably a mistake.

However, by adjusting the event code to do the same & ensuring the defaults are set it starts working again
CRM/Event/Form/Search.php
CRM/Event/Form/Task/SaveSearch.php