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 Trial

By clicking you consent to share your profile with the developer

#2590 - Hookup module doesn't show all the custom modules

Closed Bug? created by nordestinnovazione Verified Purchase 8 years ago

Hi,

I've installed Security Suite version 7.6.6 on my crm. I've completed the installation successfully however the dropdown list of the hookup module doesn't show all the custom modules in the crm. What it can be?

Regards

  1. eggsurplus member avatar

    eggsurplus Provider Affiliate

    8 years ago

    If it doesn't show the custom module then the custom module was already hooked up with Security Groups. This often happens if the custom module was created in SuiteCRM's Module Builder or Studio. To make it show up in order to use the Hookup Tool to correctly set the relationship you would need to manually remove the relationship. Here is a nice guide on how to do that: http://www.ricardomalla.com/?p=996

  2. nordestinnovazione member avatar

    nordestinnovazione Verified Purchase

    8 years ago

    It seems that the relationship exist for those modules (i see it in studio) but it is not custom. I don't find the files of the guide in the custom folders. Also i have this error on the calendar display ehen i select a security group in the shared calendar: Fatal error: Call to a member function setPreference() on a non-object in /var/www/crmschueco/modules/Calendar/CalendarDisplay.php on line 547

    Thank you in advance for the support

    • eggsurplus member avatar

      eggsurplus Provider Affiliate

      8 years ago

      It sounds like the relationship already exists then.

      Haven't seen that error before, but I do know there were many issues around the Calendar module in SuiteCRM around that version. Those have been fixed in the recent releases of SuiteCRM. I recommend upgrading.

  3. nordestinnovazione member avatar

    nordestinnovazione Verified Purchase

    8 years ago

    Hi, i managed to delete the system relationship by modifying the file modules/(module)/vardefs.php on line

    VardefManager::createVardef('promo_Promozioni','promo_Promozioni', array('basic','assignable','security_groups'));

    by removing 'security_groups'

    The hookup module now works correctly.

    I have another problem when i create a record in the crm. The error that display is the following:

    Fatal error: Uncaught Error: Using $this when not in object context in /dati/web/crm/bkp28102016/modules/SecurityGroups/SecurityGroup.php:504 Stack trace: #0 /dati/web/crm/bkp28102016/modules/SecurityGroups/SecurityGroup.php(225): SecurityGroup::retrieveDefaultGroups() #1 /dati/web/crm/bkp28102016/modules/SecurityGroups/SecurityGroup.php(183): SecurityGroup::assign_default_groups(Object(Lead), false) #2 /dati/web/crm/bkp28102016/data/SugarBean.php(1905): SecurityGroup::inherit(Object(Lead), false) #3 /dati/web/crm/bkp28102016/include/SugarObjects/templates/person/Person.php(164): SugarBean->save(false) #4 /dati/web/crm/bkp28102016/modules/Leads/Lead.php(561): Person->save(false) #5 /dati/web/crm/bkp28102016/modules/Leads/LeadFormBase.php(339): Lead->save(false) #6 /dati/web/crm/bkp28102016/modules/Leads/Save.php(50): LeadFormBase->handleSave('', true, false) #7 /dati/web/crm/bkp28102016/include/MVC/View/SugarView.php(738): require_once('/dati/web/crm/b...') #8 /dati/web/crm/bkp28102016/include/MVC/View/views/view.classic. in /dati/web/crm/bkp28102016/modules/SecurityGroups/SecurityGroup.php on line 504

    After the error the record is created but for example for calls and meetings the record is created without the invitee and i have to save it another time in order to make the invitee appear

    • eggsurplus member avatar

      eggsurplus Provider Affiliate

      8 years ago

      Nice find!

      What version of PHP are you on?

  4. nordestinnovazione member avatar

    nordestinnovazione Verified Purchase

    8 years ago

    php 7.0.4

    • eggsurplus member avatar

      eggsurplus Provider Affiliate

      8 years ago

      That will be the reason. An update for PHP 7 is in the works.

    • eggsurplus member avatar

      eggsurplus Provider Affiliate

      8 years ago

      It will require upgrading to SuiteCRM 7.7.6 once it is released.

  5. nordestinnovazione member avatar

    nordestinnovazione Verified Purchase

    8 years ago

    When do you think this version will be released?

    Can you give me a temporary solution of this problem by fixing the file securitygroups.php on the line that i send to you?

    Thanks in advance for the support

    • eggsurplus member avatar

      eggsurplus Provider Affiliate

      8 years ago

      The $this is in saveDefaultGroup in modules/SecurityGroups/SecurityGroup.php. There are 2 references. Change both from:

      $this->db->dbType
      

      To:

      $GLOBALS['db']->dbType
      

      No solid timeline on PHP 7 support yet, but hoping for end of next week.

  6. eggsurplus member avatar

    eggsurplus Provider Affiliate

    7 years ago

    Support for PHP7 has been added in the soon-to-be-released 2.9.5 version of SecuritySuite starting with SuiteCRM 7.7.9 and SugarCRM CE 6.5.24. If an upgrade to the latest version of either is not possible please feel free to contact me here or directly via email.

This case is public. Please leave out any sensitive information such as URLs, passwords, etc.
Saving Comment Saving Comment...
Rating
Rating
  • "We have big problem with SuiteCRM v.7.3.1 when creating custom screen by group. The Dashlets on the start page disappear for all user, we have this pr..." - claude_f.

    Read More Reviews