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

civicrm/CRM/Contact/Form/Edit.php does not include contact_id when firing pre_hook

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 2.0, 2.1
    • Fix Version/s: None
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      The way it does it:

      if ( $this->_action & CRM_Core_Action::UPDATE )

      { CRM_Utils_Hook::pre( 'edit', $params['contact_type'], null, $params ); }

      else

      { CRM_Utils_Hook::pre( 'create', $params['contact_type'], null, $params ); }

      The way it should do it:

      if ( $this->_action & CRM_Core_Action::UPDATE )

      { CRM_Utils_Hook::pre( 'edit', $params['contact_type'], $params['contact_id'], $params ); }

      else

      { CRM_Utils_Hook::pre( 'create', $params['contact_type'], null, $params ); }

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              dalin dave hansen-lange
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: