From: kurund Date: Mon, 5 Aug 2013 18:03:51 +0000 (+0530) Subject: CRM-13156, fixed the wrong property X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=07fc2fd34bb5388169fef5f428b2efc01f479c66;p=civicrm-core.git 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 --- 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; } /**