diff --git a/data/CRMEntity.php b/data/CRMEntity.php index 5977573378163622d156dfab7e7dd7ec23d9f623..b0c7008f400735858e39442fb04d6804c94e6a7e 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(); }