Skip to content
Snippets Groups Projects
Commit a528524c authored by Prasad's avatar Prasad
Browse files

Merge branch '290681_1' into 'master'

Fixes:Restricted Email ActivityType in RelatedListView

See merge request !1169
parents c88fced8 7cca142c
No related branches found
No related tags found
1 merge request!1169Fixes:Restricted Email ActivityType in RelatedListView
......@@ -69,6 +69,12 @@ class Project_Module_Model extends Vtiger_Module_Model {
public function getRelationQuery($recordId, $functionName, $relatedModule, $relationId) {
$relatedModuleName = $relatedModule->getName();
$query = parent::getRelationQuery($recordId, $functionName, $relatedModule, $relationId);
if($relatedModuleName == 'Calendar'){
/*
* To restrict Email activitytype in relatedlistview.
*/
$query.="AND vtiger_activity.activitytype <> 'Emails'";
}
return $query;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment