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 ); }