I created two scripts like your video
to add a todo -> Service Contracts works fine
but for add a Tickets -> Service Contracts returned a error
I try with HelpDesk, Support Tickets, Trouble Tickets, without a sucess
<?php
$Vtiger_Utils_Log=True;
include_once 'vtlib/Vtiger/Module.php';
error_reporting(E_ALL);
ini_set('display_erros','on');
$usr=new Users();
$current_user=Users::getActiveAdminUser();
$modCal = Vtiger_Module::getInstance('HelpDesk');
$field = Vtiger_Field::getInstance('rel_id',$modCal);
$field->setRelatedModules(array('ServiceContracts'));
$modSC = Vtiger_module::getInstance('ServiceContracts');
$modSC ->setRelatedList($modCal,'HelpDesk', array('ADD'), 'get_dependentes_lists');
?>
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
"setSCRelationticket.php" 17L, 492C
solved changed rel_d to parent_id
=)
Thanks Joe, for this video and explanation !!
to add a todo -> Service Contracts works fine
but for add a Tickets -> Service Contracts returned a error
I try with HelpDesk, Support Tickets, Trouble Tickets, without a sucess
<?php
$Vtiger_Utils_Log=True;
include_once 'vtlib/Vtiger/Module.php';
error_reporting(E_ALL);
ini_set('display_erros','on');
$usr=new Users();
$current_user=Users::getActiveAdminUser();
$modCal = Vtiger_Module::getInstance('HelpDesk');
$field = Vtiger_Field::getInstance('rel_id',$modCal);
$field->setRelatedModules(array('ServiceContracts'));
$modSC = Vtiger_module::getInstance('ServiceContracts');
$modSC ->setRelatedList($modCal,'HelpDesk', array('ADD'), 'get_dependentes_lists');
?>
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
"setSCRelationticket.php" 17L, 492C
solved changed rel_d to parent_id
=)
Thanks Joe, for this video and explanation !!
Ranieri
eCRM Web
eCRM Web