CoreBOSBB

Full Version: [ solved ] - Service Contracts - doubt
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
First is a module I want changed, right?
But in array, references another two modules ...

For example, I wish add a cbCalendar in ServicesContracts how I change that?

$module = Vtiger_Module::getInstance("HelpDesk");
$field = Vtiger_Field::getInstance('parent_id',$module);
$field->setRelatedModules(array('Accounts','Contacts'));
just add the one you need, the ones that are there will not be modified, you would have to use unsetRelatedModule for that
Ah ok, for example

$module = Vtiger_Module::getInstance("cbCalendar");
$field = Vtiger_Field::getInstance('parent_id',$module);
$field->setRelatedModules(array('ServiceContracts)); <- this line I will insert many modules I need, right?
correct
Hi Joe,

I did that, but not works as I need

In Tab More Information - OK
But in picklist not

See attached images
then you probably received some error from the script and it didn't execute correctly.
Yes, shows Server error 500 ...

How I can solve that?
there is an error un your script, try php -l or running with error_reporting, look in apache log, run from the command line...
Strange at first time, works for me, but today not more

What I do wrong?
See if this helps: https://youtu.be/IIWab9T6V60
Pages: 1 2 3