From 502fb3bda7059ee1bcbb90e988cc2ba6c94c5059 Mon Sep 17 00:00:00 2001
From: Uma <uma.s@vtiger.com>
Date: Fri, 4 Oct 2019 11:32:01 +0530
Subject: [PATCH] Fix for webservice tags retrieval for record

---
 data/CRMEntity.php | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/data/CRMEntity.php b/data/CRMEntity.php
index 597757337..b0c7008f4 100644
--- a/data/CRMEntity.php
+++ b/data/CRMEntity.php
@@ -910,8 +910,17 @@ class CRMEntity {
 				}
 			}
 		}
+        
+        //adding tags for vtws_retieve
+        $tagsList = Vtiger_Tag_Model::getAllAccessible($current_user->id, $module, $record);
+        $tags = array();
+        foreach($tagsList as $tag) {
+            $tags[] = $tag->getName();
+        }
+        $this->column_fields['tags'] = (count($tags) > 0) ? implode(',',$tags) : '';
 
 		$this->column_fields['record_id'] = $record;
+        $this->id = $record;
 		$this->column_fields['record_module'] = $module;
 		$this->column_fields->startTracking();
 	}
-- 
GitLab