Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 3.4.8
-
Fix Version/s: 4.2.0
-
Component/s: Drupal Integration Modules
-
Labels:
Description
Contact related events are not being fired when expected when defined in a Drupal "Triggered Rule".
Seems to be due to capitalisation of the word "Contact" causing a non-match in this line of code:
-
-
- Eclipse Workspace Patch 1.0
Index: sites/all/modules/civicrm/drupal/modules/civicrm_rules/civicrm_rules.module
===================================================================
- sites/all/modules/civicrm/drupal/modules/civicrm_rules/civicrm_rules.module (revision 1522)
+++ sites/all/modules/civicrm/drupal/modules/civicrm_rules/civicrm_rules.module (working copy)
@@ -100,7 +100,7 @@
}
- Eclipse Workspace Patch 1.0
-
// process only contacts for now
- $validObjects = variable_get('civicrm_rules_post_entities',array('Contact'));
+ $validObjects = variable_get('civicrm_rules_post_entities',array('contact'));
if ( ! in_array( strtolower($objectName), $validObjects ) ) {
return;