by eggsurplus

Control what your users can access and save time, money, and frustrations. Lock down sensitive data in SugarCRM or SuiteCRM to specific groups or teams. Supports unlimited assigned users, unlimited group assignments to records, custom layouts for each group, login/sudo capabilities and much more.

Free 30 day trial
Try it Now

By clicking you consent to share your profile with the developer

#161 - bug with custom module 6.5.13

Closed Bug? created by Lucius.Oracle 10 years ago

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

  1. Lucius.Oracle member avatar

    Lucius.Oracle

    10 years ago

    I resolve my problem :

    create relationship in ModuleBuilder and not in studio ...

    • eggsurplus member avatar

      eggsurplus Provider Affiliate

      10 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

  2. Lucius.Oracle member avatar

    Lucius.Oracle

    10 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.

    • eggsurplus member avatar

      eggsurplus Provider Affiliate

      10 years ago

      No problem! Glad that you guys are able to find SecuritySuite useful.

  3. drosenfeld member avatar

    drosenfeld Verified Purchase

    8 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.

  4. drosenfeld member avatar

    drosenfeld Verified Purchase

    8 years ago

    I found the solution for my problem.

    In the mentioned PDF, says:

    Find the generated relationship file in the custom/metadata directory and replace with the following code (file name formatted YOURCUSTOMMODULE_securitygroupsMetaData.php): <?php > $dictionary["YOURCUSTOMMODULE_securitygroups"] = array ( > 'true_relationship_type' => 'many-to-many', > 'relationships' => > array ( > ' YOURCUSTOMMODULE _securitygroups' => > array ( > 'lhs_module' => 'SecurityGroups', > 'lhs_table' => 'securitygroups', > 'lhs_key' => 'id', > 'rhs_module' => 'YOURMODULENAME', > 'rhs_table' => 'YOURCUSTOMMODULE', > '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' => ' YOURMODULENAME', > ), > ), > ); > ?>

    In my case, I had to replace

    array ( ' YOURCUSTOMMODULE _securitygroups' => with

    array ( ' YOURCUSTOMMODULE _securitygroups_1' =>

    Thanks.

  5. javerrivas member avatar

    javerrivas Verified Purchase

    8 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.

  6. javerrivas member avatar

    javerrivas Verified Purchase

    8 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.

This case is public. Please leave out any sensitive information such as URLs, passwords, etc.
Saving Comment Saving Comment...
Rating
Rating
  • "Incredibly useful. It's one of the first features you need. This needs to be part of the core product." - MTP

    Read More Reviews