Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-10189

Contact created/updated/deleted event not firing

    Details

      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:

          1. 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 @@
            }

      // 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;

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              skelly Scott Kelly
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: