[Vtigercrm-developers] vtlib, setRelatedModules() associative array does not create a related list.

Martin Allen martin.allen at clystnet.com
Mon Oct 29 16:04:46 GMT 2018


When creating a field using vtlib it is possible to pass an associative
array to setRelatedModules() function which SHOULD create a related list in
the related module.

However it never correctly creates the list, as it can't call the function
Vtiger_Module_Model::getRelationshipActions() .

e.g. $field1->setRelatedModules(Array('Contacts'=>'Accounts')) should
create a related list in Contacts module labelled 'Accounts', relating to
the module that the field was in.

Are we missing a include/require?? (Only including vtlib/Vtiger/Module.php
and Field.php and Block.php)

We tried including /modules/Vtiger/models/Module.php but still can't get it
working??

Any ideas, as the ability to add a related field and its equivalent related
list in one call would be a great time saver!!

Martin Allen

*>>Call me now for free<< <https://emailrtc.voiceflex.com/?c=7b355216c4>*


*01392 248692 - Main Office01392 690659 - Direct Line*

*[image: signature2]*

Have you visited our website recently? http://www.clystnet.com


The information in this email is confidential If you are not the intended
recipient, you must not read or use that information. This email and any
attachments are believed to be virus free however no responsibility is
accepted by Clystnet for any loss or damage arising in any way from receipt
or use thereof. Clystnet Ltd (company reg number 7164503) is based at
Silverdown Park, Fair Oak Close, Clyst Honiton, EX5 2UX
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20181029/77c65185/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 10550 bytes
Desc: not available
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20181029/77c65185/attachment.png>


More information about the vtigercrm-developers mailing list