CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Can't Remove Members From Groups; Past Group Membership
Pages: [1]

Author Topic: Can't Remove Members From Groups; Past Group Membership  (Read 336 times)

Hardwick

  • I post frequently
  • ***
  • Posts: 124
  • Karma: 1
  • CiviCRM version: 4.0.5
Can't Remove Members From Groups; Past Group Membership
February 12, 2015, 08:51:58 am
hello, client is experiencing an issue where Member is in - for whatever reason - Group A AND Group B, but member does not belong Group B. We remove the memebr from that group[ and it displays under the memebr groups tab as "Past Group Membership"

However when we then go to re-run the search for both A and B, the member remains in those search results (as if we had never removed them).

Is it normal or a bug somewhere that allows the past membership in Group B to be included in the AND search after member is removed from that group.

We are searching the settings and so far haven't come up with anything that would cause this.

Any help appreciated..we are using 4.0.5 on the site in question...

H

Hardwick

  • I post frequently
  • ***
  • Posts: 124
  • Karma: 1
  • CiviCRM version: 4.0.5
Re: Can't Remove Members From Groups; Past Group Membership
February 12, 2015, 09:13:12 am
It appears that the search retains the status "Added" regardless of whether we remove the contact form that particular group, in other words, once added , status is always "added."  The search results shows Contacts IN Group B AND Group Status - "Added"  after it's been removed and hence is showing in results. Anyone know : is this is something we need to code in - around?

joanne

  • Administrator
  • Ask me questions
  • *****
  • Posts: 852
  • Karma: 83
  • CiviCRM version: 4.4.16
  • CMS version: Drupal 7
Re: Can't Remove Members From Groups; Past Group Membership
February 12, 2015, 03:25:40 pm
I am not sure if what you are seeing is a bug in 4.0.5, or if you are not clear about how an advanced search works.

If you just run an advanced search for members of Group B, does the member you have removed from group B appear in the results ? 

If the answer is 'Yes', then it seems to be problem with 4.0.5, but rather than put time and energy into finding a solution to it, have you thought about upgrading to the most recent stable version of CiviCRM (4.5.6 at the time of this post).   

4.0.5 is over three years old now and many new features have been introduced since then.  You can try out the latest version on one of our demo sites https://civicrm.org/go/demo .

If the answer is 'No', then report back here and I will explain how an advanced search works for the situation you have described and perhaps be able to suggest a way to get the results you want. (The "perhaps" is because I only ran a 4.0 site for 6 months over 3 years ago and so will only be able to suggest what would work on later versions of CiviCRM)
 

Hardwick

  • I post frequently
  • ***
  • Posts: 124
  • Karma: 1
  • CiviCRM version: 4.0.5
Re: Can't Remove Members From Groups; Past Group Membership
February 13, 2015, 06:48:39 am
Joanne, thanks, we added code to deal with the issue as per Lobo's comment at http://forum.civicrm.org/index.php/topic,23746.0.html
Tthis was to create a truer AND-OR functionality to the groups and tags as it seemed to be treating it as default OR search per http://book.civicrm.org/user/version/4.1/the-user-interface/searching

Still, if you remove a contact from a group, is there a way to not have "Past Groups" show up. this seems to be what's confusing the search. We just want the member out that group entirely, not showing up in any further results after we removed them.

Hope that clears it up. H

Hardwick

  • I post frequently
  • ***
  • Posts: 124
  • Karma: 1
  • CiviCRM version: 4.0.5
Re: Can't Remove Members From Groups; Past Group Membership
February 16, 2015, 07:47:10 am
Even the ability to search by "Past Groups" would help, if anyone can point it out. only other solution we see is to manually compare the mismatched records, reimport them as non-members then simply delete or set them apart in a non-member group. just trying to save some time with it. H

joanne

  • Administrator
  • Ask me questions
  • *****
  • Posts: 852
  • Karma: 83
  • CiviCRM version: 4.4.16
  • CMS version: Drupal 7
Re: Can't Remove Members From Groups; Past Group Membership
February 16, 2015, 02:39:31 pm
I could have the wrong impression entirely, but I think perhaps you misunderstand the function of the Search Operator field. 

In Advanced Search, the Search operator selection applies to how the different fields are combined, not to how the selections within a field are combined.

Selections within a given field are always combined with an OR .

For example

IDNameJob title
1Marybarista
2Janebarista
3Peterwaiter
4Simoncook
5Fionawaiter
6Harry barista
7Ruthbarista

With Group A = {1,2,3,4} and Group B = {2,4,5,6}

If you do an advanced search and the only thing you set is selecting both group A and group B in the group(s) field,  then the result will be {1,2,3,4,5,6}. This will be the result whether the Search operator is set to AND or to OR.



The search operator field only has an effect if you set criteria for more than one field in an advanced search.

So if you select Group A in the groups field and barista in the job title field and the Search operator is set to AND then the result will be  {1,2} as these are the only two who are both in group A and have a job title of barista.

If you select Group A in the groups field and barista in the job title field and the Search operator is set to OR then the result will be {1,2,3,4,6,7} as these are the people who are in group A or have a job title of barista (or both).

So coming back to your situation if the person you removed from group B is still in group A then they will always be included in your results.

(Apologies if you already understood this. If so, perhaps you can give a brief example, using just first names, of the problems you are having.)
« Last Edit: February 16, 2015, 02:43:40 pm by joanne »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Can't Remove Members From Groups; Past Group Membership

This forum was archived on 2017-11-26.