CoreBOSBB
[ solved ] - Service Contracts - doubt - Printable Version

+- CoreBOSBB (https://discussions.corebos.org)
+-- Forum: Support (https://discussions.corebos.org/forumdisplay.php?fid=17)
+--- Forum: Administrator Support (https://discussions.corebos.org/forumdisplay.php?fid=8)
+--- Thread: [ solved ] - Service Contracts - doubt (/showthread.php?tid=961)

Pages: 1 2 3


RE: Service Contracts - Issues - rslemer - 07-31-2018

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'));


RE: Service Contracts - doubt - joebordes - 08-01-2018

just add the one you need, the ones that are there will not be modified, you would have to use unsetRelatedModule for that


RE: Service Contracts - doubt - rslemer - 08-02-2018

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?


RE: Service Contracts - doubt - joebordes - 08-02-2018

correct


RE: Service Contracts - doubt - rslemer - 08-17-2018

Hi Joe,

I did that, but not works as I need

In Tab More Information - OK
But in picklist not

See attached images


RE: Service Contracts - doubt - joebordes - 08-17-2018

then you probably received some error from the script and it didn't execute correctly.


RE: Service Contracts - doubt - rslemer - 08-17-2018

Yes, shows Server error 500 ...

How I can solve that?


RE: Service Contracts - doubt - joebordes - 08-17-2018

there is an error un your script, try php -l or running with error_reporting, look in apache log, run from the command line...


RE: Service Contracts - doubt - rslemer - 09-12-2018

Strange at first time, works for me, but today not more

What I do wrong?


RE: Service Contracts - doubt - joebordes - 09-18-2018

See if this helps: https://youtu.be/IIWab9T6V60