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

Duplicate key in civicrm_rules_data_type_info()

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.3.2
    • Fix Version/s: 3.3.3
    • Labels:
      None

      Description

      This looks like a bug (untested, I'm afraid) because both entries in the array have the same key. It looks from civicrm_rules_action_info as if the second key should be 'mailing'.
       
      /**

      • Implementation of hook_rules_data_type_info().
        */
        function civicrm_rules_data_type_info() {
           return array(
                        'contact' => array(
                                           'label' => t('Contact'),
                                           'class' => 'rules_data_type_contact',
                                           'savable' => FALSE,
                                           'identifiable' => TRUE,
                                           ),
                        'contact' => array(
                                           'label' => t('Mailing'),
                                           'class' => 'rules_data_type_mailing',
                                           'savable' => FALSE,
                                           ),
                        );
        }

        Attachments

          Activity

            People

            • Assignee:
              yashodha Yashodha Chaku
              Reporter:
              idw Will Moy
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: