Mwalker has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/116913

Change subject: WIP: Make EntityTag more useful
......................................................................

WIP: Make EntityTag more useful

Change-Id: I0e0051f60223cc985346dca360c02c5f546b3ff4
---
M CRM/Core/BAO/EntityTag.php
1 file changed, 6 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/wikimedia/fundraising/crm/civicrm 
refs/changes/13/116913/1

diff --git a/CRM/Core/BAO/EntityTag.php b/CRM/Core/BAO/EntityTag.php
index a327430..bea3a56 100644
--- a/CRM/Core/BAO/EntityTag.php
+++ b/CRM/Core/BAO/EntityTag.php
@@ -56,10 +56,15 @@
     $entityTag = new CRM_Core_BAO_EntityTag();
     $entityTag->entity_id = $entityID;
     $entityTag->entity_table = $entityTable;
+    $entityTag->joinAdd(new CRM_Core_BAO_Tag());
     $entityTag->find();
 
     while ($entityTag->fetch()) {
-      $tags[$entityTag->tag_id] = $entityTag->tag_id;
+      $tags[$entityTag->tag_id] = array(
+        'id' => $entityTag->tag_id,
+        'name' => $entityTag->name,
+        'description' => $entityTag->description
+      );
     }
     return $tags;
   }

-- 
To view, visit https://gerrit.wikimedia.org/r/116913
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0e0051f60223cc985346dca360c02c5f546b3ff4
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/fundraising/crm/civicrm
Gerrit-Branch: master
Gerrit-Owner: Mwalker <mwal...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to