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 Drupal Modules (Moderator: Donald Lobo) »
  • CiviGroup Roles Sync not picking up Group
Pages: [1]

Author Topic: CiviGroup Roles Sync not picking up Group  (Read 13466 times)

robbiemc

  • I post occasionally
  • **
  • Posts: 66
  • Karma: 0
  • CiviCRM version: 4.5.0
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.37
  • PHP version: 5.3.28
CiviGroup Roles Sync not picking up Group
July 15, 2013, 08:17:18 am
Hi

I have just upgraded to Civi 4.3.5 (Drupla 7) but have an issue with Group Roles.

For some reason, even though the Civi group is showing in the dropdown, the group is not being picked up and I am being left with <--> 'Drupal Group'.

This may be as a result of another issue I reported with Civi Groups where I am being forced to select a parent group, see post http://forum.civicrm.org/index.php/topic,29383.msg125988.html#msg125988

Anybody come across a similar issue?

Robbie


The Doctor

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 1
  • CiviCRM version: 4.7.x
  • CMS version: Drupal 7.x
Re: CiviGroup Roles Sync not picking up Group
November 24, 2013, 02:41:20 pm
I am having the exact same issue.

However, I do NOT have the parent group issue.

With some groups selected, it works as it should, with others I get the same missing group to the left of the <-->.

I know that smart groups in CiviCRM do not work with Group Roles sync, so I made sure I am not selecting smart groups.

davej

  • Ask me questions
  • ****
  • Posts: 404
  • Karma: 21
Re: CiviGroup Roles Sync not picking up Group
February 04, 2014, 04:07:09 am
Hi,

I've found the cause of missing group names in the list of association rules: the missing names are a victim of the 25-record limit for API v3 get. (Expect a wry smile from Michael McAndrew: http://forum.civicrm.org/index.php?topic=26854.0 )

Here's a fix:

Code: [Select]
--- drupal/modules/civicrm_group_roles/civicrm_group_roles.module.orig 2014-02-04 12:04:23.000000000 +0000
+++ drupal/modules/civicrm_group_roles/civicrm_group_roles.module 2014-02-04 12:04:40.000000000 +0000
@@ -443,7 +443,7 @@
   $roles = user_roles(TRUE);
 
   // get civicrm groups
-  $params = array('version' => 3);
+  $params = array('version' => 3, 'option.limit' => 0);
   $groups = civicrm_api('group', 'get', $params);
   $groups = CRM_Utils_Array::value('values', $groups);
 

Created issue https://issues.civicrm.org/jira/browse/CRM-15315 .

Cheers,

Dave
« Last Edit: September 16, 2014, 10:57:01 am by davej »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • CiviGroup Roles Sync not picking up Group

This forum was archived on 2017-11-26.