From 07fc2fd34bb5388169fef5f428b2efc01f479c66 Mon Sep 17 00:00:00 2001 From: kurund Date: Mon, 5 Aug 2013 23:33:51 +0530 Subject: [PATCH] CRM-13156, fixed the wrong property ---------------------------------------- * CRM-13156: CRM_Core_BAO_EntityTag::getEntitiesByTag enumerates for incorrect field http://issues.civicrm.org/jira/browse/CRM-13156 --- CRM/Core/BAO/EntityTag.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CRM/Core/BAO/EntityTag.php b/CRM/Core/BAO/EntityTag.php index 28842861d7..0590949980 100644 --- a/CRM/Core/BAO/EntityTag.php +++ b/CRM/Core/BAO/EntityTag.php @@ -268,18 +268,18 @@ class CRM_Core_BAO_EntityTag extends CRM_Core_DAO_EntityTag { * * @param object $tag an object of a tag. * - * @return array $contactIds array of contact ids + * @return array $entityIds array of entity ids * @access public */ function getEntitiesByTag($tag) { - $contactIds = array(); + $entityIds = array(); $entityTagDAO = new CRM_Core_DAO_EntityTag(); $entityTagDAO->tag_id = $tag->id; $entityTagDAO->find(); while ($entityTagDAO->fetch()) { - $contactIds[] = $entityTagDAO->contact_id; + $entityIds[] = $entityTagDAO->entity_id; } - return $contactIds; + return $entityIds; } /** -- 2.25.1