#161 - bug with custom module 6.5.13
Hello and sorry for my bad english ...
I use SUGARCRM CE 6.5.13 with securitysuite 6513, no problem with module (account, contact, opportunity, etc...)
but for custom module i have create relationship in my module and modify file dci05_demande_be_securitygroups_1MetaData.php
with this CODE :
<?php $dictionary["dci05_demande_be_securitygroups"] = array ( 'true_relationship_type' => 'many-to-many', 'relationships' => array ( 'dci05_demande_be_securitygroups' => array ( 'lhs_module' => 'SecurityGroups', 'lhs_table' => 'securitygroups', 'lhs_key' => 'id', 'rhs_module' => 'DCI05_Demande_BE', 'rhs_table' => 'dci05_demande_be', 'rhs_key' => 'id', 'join_table' => 'securitygroups_records', 'join_key_lhs' => 'securitygroup_id', 'join_key_rhs' => 'record_id', 'relationship_type' => 'many-to-many', 'relationship_role_column' => 'module', 'relationship_role_column_value' => 'DCI05_Demande_BE', ), ), ); ?>
i have repair relationship but when i assign group this error spawn :
Fatal error: Cannot access empty property in /var/www/sugar/modules/SecurityGroups/MassAssign.php on line 92
best regards, Lucius.Oracle
11 years ago
I resolve my problem :
create relationship in ModuleBuilder and not in studio ...
11 years ago
Glad to hear it. If you are using the Premium edition of SecuritySuite? If so, that can handle hooking up custom modules to groups automatically for you.
-Jason
11 years ago
No, I use the basic version. And my company is not ready to pay for my development SUGAR .... I need to find solutions without having to pay ... but thx eggsurplus.
11 years ago
No problem! Glad that you guys are able to find SecuritySuite useful.
9 years ago
HI Lucius. I am having the same problem than you. But I can't create the relationship in Module builder, because my module (AOS_Quotes) was not created there. I installed it with the Module loader. So the only way I have to create the relationship is using the Studio.
I followed the steps in the PDF "SecuritySuite_Documentation_2.1.pdf", in order to "Enable Security Suite for a Custom Module", but I still have this error when I try to assign groups masively to several Quotes.:
Fatal error: Cannot access empty property in /var/www/sugar/modules/SecurityGroups/MassAssign.php on line 92
Despite, in the Detail View of the AOS_Quotes module, the subpanel of SecurityGroups is not present.
Thanks. Diego.
9 years ago
I found the solution for my problem.
In the mentioned PDF, says:
In my case, I had to replace
Thanks.
9 years ago
Great find!
9 years ago
I can not see the massive assignment . in any module. I suitecrm .
and repair relations.
wht is the diference custommodule and modulename? in the PDF guide.
Thank You.
9 years ago
Thanks for you help drosenfeld
My original module file is: mi modulo original es: fph_historia_clinica
ihave the automatic generate relationshi file: fph_historia_clinica_securitygroups_1_fph_historia_clinica.php in (custom/Extension/modules/fph_historia_clinica/Ext/Layoutdefs)
which are the correct data ?
'rhs_module' => 'YOURMODULENAME', 'rhs_table' => 'YOURCUSTOMMODULE',
i have suitecrm 7.2.2
thanks.