Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 2.2.8
-
Fix Version/s: 2.2.9
-
Component/s: Drupal Integration Modules
-
Labels:None
Description
Line 235 of /drupal/modules/civicrm_group_roles/civicrm_group_roles.module has an incorrect usage of the Drupal db_query function. Here is a diff with it corrected:
235c235
< $rolecount = db_result(db_query('SELECT count FROM `drup_civicrm_group_roles_rules` WHERE group_id in(%s) AND role_id=%d', $grpsuserin, $rid));
—
> $rolecount = db_result(db_query('SELECT count FROM
WHERE group_id in(%s) AND role_id=%d', $grpsuserin, $rid));
Should be self-explanatory--the issue is that the table "drup_civicrm_group_roles_rules" doesn't exist.