Skip to content
Snippets Groups Projects
Commit ca600435 authored by Uma's avatar Uma
Browse files

Merge branch 'Email_Related_list' into 'master'

Fixes #369 #492 Emails Related-list supported for Tickets and Potentials

See merge request !631
parents 2b2eb21a 4f7bc42c
No related branches found
No related tags found
No related merge requests found
......@@ -258,4 +258,14 @@ if (defined('VTIGER_UPGRADE')) {
$block = Vtiger_Block::getInstance('Recurring Invoice Information', $moduleInstance);
$block->addField($field);
//Adding related list between Emails and Potentials
$emailRelatedModules = array('Potentials', 'HelpDesk');
foreach ($emailRelatedModules as $key => $moduleName) {
$moduleModel = Vtiger_Module_Model::getInstance($moduleName);
if($moduleModel){
$moduleModel->setRelatedList(Vtiger_Module_Model::getInstance('Emails'), 'Emails', 'ADD', 'get_emails');
print("Email related list added to $moduleName");
}
}
}
\ No newline at end of file
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