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 Profiles (Moderator: Dave Greenberg) »
  • Using Group(s) field in profile removes user from all other groups?
Pages: [1]

Author Topic: Using Group(s) field in profile removes user from all other groups?  (Read 1556 times)

AudreyKate

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 1
  • CiviCRM version: 3.4.4
  • CMS version: Drupal 6.24
Using Group(s) field in profile removes user from all other groups?
May 04, 2011, 10:59:11 pm
I'm having this issue where I've included the Group(s) field in a profile that I'm using for event registration. I've only got one public group, which appears as a check box.

However, when people check the box and submit the form, CiviCRM is not just adding them to that group. It's automatically REMOVING them from any other groups they might belong to -- all the private groups I've created, like Board of Directors, Regional Vice Presidents, etc. When I go into their contact record, those groups are listed under "Past Groups" and the status says "Removed (by Admin)." The "Date Removed" listed is identical to the date and time they've been added to the public group, so I know that the form is both adding and removing people from groups.

It's wrecking havoc because every time someone registers for the event, I've got to go in and re-add them to the groups that are giving them permissions on our Drupal site and in CiviCRM.

Anyone else having this problem? Any suggestions? Something I'm doing wrong?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Using Group(s) field in profile removes user from all other groups?
May 05, 2011, 09:13:21 am

can you reproduce this issue on our demo server and see if it is present in 3.4

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

AudreyKate

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 1
  • CiviCRM version: 3.4.4
  • CMS version: Drupal 6.24
Re: Using Group(s) field in profile removes user from all other groups?
May 06, 2011, 05:09:48 pm
Aha! I was able to reproduce the issue on the demo site.

I created a group called "Conference 2011" and set it for "Public Pages."

I then created a profile called "Join Conference Group" which contained the Group(s) field and the email field (because of the double opt-in, Civi required me to include the email field first).

I then created a free event called "Conference 2011" and included the "Join Conference Group" profile in the online registration page.

When I registered for the event and clicked the box to join that group, CiviCRM automatically removed the demo user (Atul Patel, demo@example.com) from all his other groups (Advisory Board, Summer Program Volunteers). It was actually a relief to see the demo site duplicate the behavior.

In my use case, I need the members of this group to have a Drupal role, through CiviGroup Roles Sync, which means I can't just make it a smart group based on a custom field -- the contacts have to be manually added to the group, and using the Group(s) field in a profile seems the only way to do that.

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Using Group(s) field in profile removes user from all other groups?
May 06, 2011, 06:35:51 pm
not trying to resolve that problem - but rather than adding the 'group' in the group field in the profile - how about just use the Adv Setting for the Profile and set anyone who fills it out to be joined to the specified group - that gets you the goal you want - hope that explains it enough as i dash out - we have used this for exactly the purpose you describe
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

AudreyKate

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 1
  • CiviCRM version: 3.4.4
  • CMS version: Drupal 6.24
Re: Using Group(s) field in profile removes user from all other groups?
May 06, 2011, 08:33:38 pm
Thanks, I'll try that! Will that allow people NOT to opt into the group? In other words, as it's set up now, they can check the box or not check the box, deciding whether or not they want to join the group. If I set it to add everyone who submits the profile, will there be any way to opt out? Or will them NOT checking the box count in CiviCRM's "mind" as NOT submitting that profile, even if they submit the reg form?

Hope that's clear.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Using Group(s) field in profile removes user from all other groups?
May 07, 2011, 07:33:10 am

can you please file an issue and we'll fix this soon. seems like a pretty awful bug

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

AudreyKate

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 1
  • CiviCRM version: 3.4.4
  • CMS version: Drupal 6.24
Re: Using Group(s) field in profile removes user from all other groups?
May 07, 2011, 09:23:10 pm
Issue filed here:
http://issues.civicrm.org/jira/browse/CRM-8055

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Using Group(s) field in profile removes user from all other groups?

This forum was archived on 2017-11-26.