Posts: 1,665
Threads: 644
Joined: Aug 2016
Reputation:
164
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'));
Ranieri
eCRM Web
Posts: 3,565
Threads: 36
Joined: Apr 2014
Reputation:
49
just add the one you need, the ones that are there will not be modified, you would have to use unsetRelatedModule for that
Joe
TSolucio
Posts: 1,665
Threads: 644
Joined: Aug 2016
Reputation:
164
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?
Ranieri
eCRM Web
Posts: 1,665
Threads: 644
Joined: Aug 2016
Reputation:
164
08-17-2018, 11:29 AM
(This post was last modified: 08-17-2018, 11:34 AM by rslemer .)
Hi Joe,
I did that, but not works as I need
In Tab More Information - OK
But in picklist not
See attached images
Attached Files
Image(s)
Ranieri
eCRM Web
Posts: 3,565
Threads: 36
Joined: Apr 2014
Reputation:
49
then you probably received some error from the script and it didn't execute correctly.
Joe
TSolucio
Posts: 1,665
Threads: 644
Joined: Aug 2016
Reputation:
164
08-17-2018, 01:59 PM
(This post was last modified: 08-17-2018, 02:02 PM by rslemer .)
Yes, shows Server error 500 ...
How I can solve that?
Ranieri
eCRM Web
Posts: 3,565
Threads: 36
Joined: Apr 2014
Reputation:
49
there is an error un your script, try php -l or running with error_reporting, look in apache log, run from the command line...
Joe
TSolucio
Posts: 1,665
Threads: 644
Joined: Aug 2016
Reputation:
164
09-12-2018, 11:35 PM
(This post was last modified: 09-12-2018, 11:37 PM by rslemer .)
Strange at first time, works for me, but today not more
What I do wrong?
Attached Files
moderel.txt (Size: 3.59 KB / Downloads: 2)
Ranieri
eCRM Web