Skip to content
Snippets Groups Projects
Commit 7cca142c authored by yogeshwar's avatar yogeshwar
Browse files

#Fixes::Restricted Email ActivityType in RelatedListView

parent fd43477c
No related branches found
No related tags found
No related merge requests found
......@@ -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