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

Merge pull request #1340 from kurund/CRM-13156

CRM-13156, fixed incorrect property name
parents b6397f6a 07fc2fd3
No related branches found
No related tags found
No related merge requests found
...@@ -268,18 +268,18 @@ class CRM_Core_BAO_EntityTag extends CRM_Core_DAO_EntityTag { ...@@ -268,18 +268,18 @@ class CRM_Core_BAO_EntityTag extends CRM_Core_DAO_EntityTag {
* *
* @param object $tag an object of a tag. * @param object $tag an object of a tag.
* *
* @return array $contactIds array of contact ids * @return array $entityIds array of entity ids
* @access public * @access public
*/ */
function getEntitiesByTag($tag) { function getEntitiesByTag($tag) {
$contactIds = array(); $entityIds = array();
$entityTagDAO = new CRM_Core_DAO_EntityTag(); $entityTagDAO = new CRM_Core_DAO_EntityTag();
$entityTagDAO->tag_id = $tag->id; $entityTagDAO->tag_id = $tag->id;
$entityTagDAO->find(); $entityTagDAO->find();
while ($entityTagDAO->fetch()) { while ($entityTagDAO->fetch()) {
$contactIds[] = $entityTagDAO->contact_id; $entityIds[] = $entityTagDAO->entity_id;
} }
return $contactIds; return $entityIds;
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment