Problem with (embedded ?) Smart Groups and Search Criteria Modification and Update
There are several questions on the stack-exchange which regard Smart Group updating (e.g. : https://civicrm.stackexchange.com/questions/12809/smart-groups-cannot-get-smart-groups-to-refresh/28334#28334) : I could reproduce one such issue on the Demo site (but I draw attention to the fact that it can be erratic) :
- Create a group : test (empty)
- Advance search Individuals whose name contains "Adam" > You get 12 instances > Create smart group G1 under test
- Advance search Individuals whose name contains "ck" > You get 8 instances > Create smart group G2 under test
- Advance search Individuals whose name contains "y" > You get 52 instances > Create smart group G3 under test
- Advance search Groups G1, G2, G3 > You get 70 (you could expect 72, but there are some common rsults) > Create smart group "Total" under test
Now :
- open G1 and modify search criteria : "Ad" instead of "Adam" > you get 18 instances (instead of 12), thus 6 more > Update the smart group
- Open group "Total" > you get 77 instead of 70, thus 7 more : why 7 and not 6 ?
Now again :
- open G1 again and modify search criteria : "d" instead of "Ad" > You get 71 instances (instead of 18, thus a lot more) > Update the smart Group
- Open group "Total" > you still get 77 (while it should contain much more than that)
- Open "test" > you get 104 while there is no reason why it should be different from "Total" result