[Vtigercrm-commits] [vtiger development] #6292: custom-links are not shown under module "campaigns"

vtiger development vtiger-tickets at trac.vtiger.com
Tue Sep 8 03:02:26 EDT 2009


#6292: custom-links are not shown under module "campaigns"
-----------------------+----------------------------------------------------
 Reporter:  paproth    |       Owner:  developer
     Type:  patch      |      Status:  new      
 Priority:  minor      |   Milestone:  5.1.0    
Component:  vtigercrm  |     Version:  5.1.0    
 Keywords:             |  
-----------------------+----------------------------------------------------
 I created a small script to add a link:

 <?php
   include_once('vtlib/Vtiger/Module.php');
   $mod = Vtiger_Module::getInstance('Campaigns');
   $mod->addLink('DETAILVIEW', 'This is a Testlink!',
 'test.php?src_record=$RECORD$');

 Link is added in the vtiger_links-table
 But when I open the capaign-site I could not see it!
 So I compared DetailView.php under modules/Campaigns with DetailView.php
 under modules/Accounts
 and noticed that folliwing lines of code are not in DetailView.php under
 modules/Campaigns:

 include_once('vtlib/Vtiger/Link.php');
 $customlink_params = Array('MODULE'=>$currentModule, 'RECORD'=>$focus->id,
 'ACTION'=>vtlib_purify($_REQUEST['action']));
 $smarty->assign('CUSTOM_LINKS',
 Vtiger_Link::getAllByType(getTabid($currentModule),
 Array('DETAILVIEWBASIC','DETAILVIEW'), $customli
 nk_params));

-- 
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/6292>
vtiger development <http://trac.vtiger.com/>
vtigerCRM




More information about the vtigercrm-commits mailing list