Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[ solved ] - Service Contracts - doubt
#11
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
Reply
#12
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
Reply
#13
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
Reply
#14
correct
Joe
TSolucio
Reply
#15
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
Reply
#16
then you probably received some error from the script and it didn't execute correctly.
Joe
TSolucio
Reply
#17
Yes, shows Server error 500 ...

How I can solve that?
Ranieri
eCRM Web
Reply
#18
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
Reply
#19
Strange at first time, works for me, but today not more

What I do wrong?


Attached Files
.txt   moderel.txt (Size: 3.59 KB / Downloads: 2)
Ranieri
eCRM Web
Reply
#20
See if this helps: https://youtu.be/IIWab9T6V60
Joe
TSolucio
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)