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) »
  • Add new contacts to a group removes contact from other groups!
Pages: [1]

Author Topic: Add new contacts to a group removes contact from other groups!  (Read 3532 times)

sjthespian

  • I post occasionally
  • **
  • Posts: 63
  • Karma: 3
    • The League of Professional System Administrators
  • CiviCRM version: 4.2.7
  • CMS version: Drupal 6.28
  • MySQL version: 5.1.66
  • PHP version: 5.3.3
Add new contacts to a group removes contact from other groups!
October 08, 2009, 08:08:23 pm
I am setting up a set of forms to allow our users to subscribe to CiviMail mailing lists.  I have created new profiles that allow the user to verify his or her name and e-mail address, then defined the profile to add the contact to a group.  This all works, with one exception -- the user gets removed from any other groups and ends up just in the one that was selected.

Has anyone else seen anything like this?

I'm running civicrm 3.0 under Joomla 1.5.14.

As part of this, does anyone know of a way I can send a confirmation e-mail before the user is joined to a group?  I have already verified the e-mail address when the account was created (courtesy of Joomla), but I don't want to run into the California anti-spam laws, and confirming the opt-in is the best way to do that.
Dan Rich <drich@lopsa.org>
    Director, LOPSA - http://lopsa.org/

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: Add new contacts to a group removes contact from other groups!
October 09, 2009, 08:04:50 am

this was a bug in early versions of 1.x. can you please try to replicate this on the joomla demo and then give us the exact steps to replicate

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

sjthespian

  • I post occasionally
  • **
  • Posts: 63
  • Karma: 3
    • The League of Professional System Administrators
  • CiviCRM version: 4.2.7
  • CMS version: Drupal 6.28
  • MySQL version: 5.1.66
  • PHP version: 5.3.3
Re: Add new contacts to a group removes contact from other groups!
October 09, 2009, 08:52:25 am
I started trying to test it on the demo site, but I ran into a snag -- the demo user can't create a registered Joomla user.  Here is what I did so far:

  • Create a new profile that adds the user to the group -- in this case I called it "Group Add Test"
  • Add a user to one or more groups (I registered myself, look for Dan Rich in the demo)
  • Create a menu item in Joomla that links to the profile (Profiles -> Group Test)
  • Go to the menu item as a registered user and save it
  • This is were I am stuck, on the demo site I get the "You do not have permission to execute this url." message

If this behaves the same as my site, it should leave the user only in the Summer Program Volunteers group and remove him or her from any other groups.
Dan Rich <drich@lopsa.org>
    Director, LOPSA - http://lopsa.org/

sjthespian

  • I post occasionally
  • **
  • Posts: 63
  • Karma: 3
    • The League of Professional System Administrators
  • CiviCRM version: 4.2.7
  • CMS version: Drupal 6.28
  • MySQL version: 5.1.66
  • PHP version: 5.3.3
Re: Add new contacts to a group removes contact from other groups!
October 22, 2009, 01:18:13 pm
Donlad, any more thoughts on this problem?  I can't get to the point where I can reproduce it on the demo site, even trying to register a user by subscribing doesn't work, as the test CC number listed on the demo page is missing the exp. date and CSV, so the paypal sandbox won't process it.
Dan Rich <drich@lopsa.org>
    Director, LOPSA - http://lopsa.org/

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: Add new contacts to a group removes contact from other groups!
October 22, 2009, 02:02:26 pm

this bug is fixed in 3.0.2 which will be released next week, the patch is here:

would be great if you can apply the patch and test it so we know for sure its fixed

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

sjthespian

  • I post occasionally
  • **
  • Posts: 63
  • Karma: 3
    • The League of Professional System Administrators
  • CiviCRM version: 4.2.7
  • CMS version: Drupal 6.28
  • MySQL version: 5.1.66
  • PHP version: 5.3.3
Re: Add new contacts to a group removes contact from other groups!
October 22, 2009, 02:13:48 pm
Sure!  Should "here:" have a link after it? :-)
Dan Rich <drich@lopsa.org>
    Director, LOPSA - http://lopsa.org/

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: Add new contacts to a group removes contact from other groups!
October 22, 2009, 02:37:07 pm

argh:

http://fisheye2.atlassian.com/browse/~br=v3.0,author=lobo/CiviCRM/branches/v3.0/CRM/Contact/Form/Edit/TagsAndGroups.php?r1=24096&r2=24289

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

sjthespian

  • I post occasionally
  • **
  • Posts: 63
  • Karma: 3
    • The League of Professional System Administrators
  • CiviCRM version: 4.2.7
  • CMS version: Drupal 6.28
  • MySQL version: 5.1.66
  • PHP version: 5.3.3
Re: Add new contacts to a group removes contact from other groups!
October 22, 2009, 03:04:07 pm
Unless I'm reading the patch wrong, that looks like what I already have.  The allGroup() and group() calls do not have any arguments in administrator/components/com_civicrm/civicrm/CRM/Contact/Form/Edit/TagsAndGroups.php on my system.

I also tried adding 'Mailing' in as an argument to the function calls just in case, but that still gave me the same problem on my server.  I even double-checked to make sure that nothing was cached on the server side....
Dan Rich <drich@lopsa.org>
    Director, LOPSA - http://lopsa.org/

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Add new contacts to a group removes contact from other groups!
October 23, 2009, 03:24:27 pm
Thanks for your persistence. We tracked this down and have filed an issue for 3.0.2 fix. This is actually a pretty nasty bug so I expect we'll release 3.0.2 with the fix by early next week.

http://issues.civicrm.org/jira/browse/CRM-5280
Protect your investment in CiviCRM by  becoming a Member!

sjthespian

  • I post occasionally
  • **
  • Posts: 63
  • Karma: 3
    • The League of Professional System Administrators
  • CiviCRM version: 4.2.7
  • CMS version: Drupal 6.28
  • MySQL version: 5.1.66
  • PHP version: 5.3.3
Re: Add new contacts to a group removes contact from other groups!
November 08, 2009, 05:10:55 pm
Quote from: Dave Greenberg on October 23, 2009, 03:24:27 pm
Thanks for your persistence. We tracked this down and have filed an issue for 3.0.2 fix. This is actually a pretty nasty bug so I expect we'll release 3.0.2 with the fix by early next week.

http://issues.civicrm.org/jira/browse/CRM-5280

Good news, I just upgraded to 3.0.2 and it fixes the issue!  Thanks for the help and the fix.
Dan Rich <drich@lopsa.org>
    Director, LOPSA - http://lopsa.org/

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Add new contacts to a group removes contact from other groups!

This forum was archived on 2017-11-26.