Skip to content
Snippets Groups Projects
Commit 355b20b1 authored by Kurund Jalmi's avatar Kurund Jalmi
Browse files

fixes for entity delete function, CRM-14052

----------------------------------------
* CRM-14052: Tagset fixes
  http://issues.civicrm.org/jira/browse/CRM-14052
parent 6fd5424b
No related branches found
No related tags found
No related merge requests found
......@@ -124,13 +124,11 @@ class CRM_Core_BAO_EntityTag extends CRM_Core_DAO_EntityTag {
static function del(&$params) {
$entityTag = new CRM_Core_BAO_EntityTag();
$entityTag->copyValues($params);
if ($entityTag->find(TRUE)) {
$entityTag->delete();
$entityTag->delete();
//invoke post hook on entityTag
$object = array(0 => array(0 => $params['entity_id']), 1 => $params['entity_table']);
CRM_Utils_Hook::post('delete', 'EntityTag', $params['tag_id'], $object);
}
//invoke post hook on entityTag
$object = array(0 => array(0 => $params['entity_id']), 1 => $params['entity_table']);
CRM_Utils_Hook::post('delete', 'EntityTag', $params['tag_id'], $object);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment