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

#151 - "Security Groups: Mass Assign" subpanel in a module's list view is not displaying

Closed Bug? created by Stefan 10 years ago

Hi Jason,

I've encountered an issue where the "Security Groups: Mass Assign" subpanel in a module's listview is not displaying despite a successful installation. Before I go any further, a little background first. I've been using your module locally on my Windows 8 laptop running IIS and MySQL without any issues. We created a server with the same setup except it's Windows Server 2012 instead of Windows 8 (same version of IIS & MySQL). On a vanilla install of SugarCRM (I tried 6.5.12 & 6.5.13), I installed your module and it completed without errors. I then navigate to any module's listview (ie Accounts) and the "Security Groups: Mass Assign" subpanel is not there. If I drill down into an account, the "Security Groups" subpanel is displayed and functions properly. The only thing I can think of is a permission issue but my laptop and server are setup the same whereas the IIS user has full control of the sugar directory and all its children. Let me know if you need more information.

Thanks Stefan

  1. eggsurplus member avatar

    eggsurplus Provider Affiliate

    10 years ago

    The only restriction for whether Mass Assign shows or not is that the current user must have access to the Security Groups module in their roles or be an admin. Are there any javascript errors in the browser console? Anything in sugarcrm.log?

  2. staganyi member avatar

    Stefan

    10 years ago

    • I'm using an admin account
    • No console errors
    • Cleared log, reloaded page and no errors in log file

    What can we try next? Want to try some debug messages when the panel should be loaded? Let me know.

    Thanks Stefan

    • eggsurplus member avatar

      eggsurplus Provider Affiliate

      10 years ago

      You could try running a repair/rebuild and repair relationships. Beyond that I don't see any reason it wouldn't show except that there is a conflict with another installed module or theme.

  3. staganyi member avatar

    Stefan

    10 years ago

    That's the thing, I do it immediately after a fresh sugarcrm ce install (v6.5.11, 12 & 13) without any other modules. I also tried a repair/rebuild and repair relationships with no luck. This hiccup is preventing us from going live, let me know if you could think of anything else to try.

    • eggsurplus member avatar

      eggsurplus Provider Affiliate

      10 years ago

      It is not showing below the list view as show here? https://www.sugaroutfitters.com/docs/securitysuite/features#massassign

      I would suggest installing Apache and seeing if you see it then to help rule out potential file permission issues. Either that or confirm that custom/modules/logic_hooks.php can execute as well as modules/SecurityGroups/AssignGroups.php. This is how the Mass Assign gets added to the page. That logic hooks file should contain 4 different SecuritySuite specific hooks.

  4. staganyi member avatar

    Stefan

    10 years ago

    Yes the Mass assign/remove from lists.

    Ok, I will look in those files and report back.

  5. staganyi member avatar

    Stefan

    10 years ago

    Ok the culprit is custom/modules/logic_hooks.php. That file does not contain the line (I compared it to my successful installtion on my win8 laptop):

    $hook_array['after_ui_frame'][] = Array(20, 'mass_assign', 'modules/SecurityGroups/AssignGroups.php','AssignGroups', 'mass_assign');

    It's also missing:

    $hook_array['after_save'] = Array(); $hook_array['after_save'][] = Array(30, 'popup_select', 'modules/SecurityGroups/AssignGroups.php','AssignGroups', 'popup_select');

    I manually add it and the mass assign is displayed properly. Obviously, now the question is how did that happen. Let me know if you need more info.

    • eggsurplus member avatar

      eggsurplus Provider Affiliate

      10 years ago

      Interesting. Good find! It installs those as part of the logic_hooks array in the zip file's manifest.php. Why it isn't working in your case is beyond me. It has always worked for every other install out there.

  6. staganyi member avatar

    Stefan

    10 years ago

    This is very interesting. How can it be explained that popup_onload & version_check make it into logic_hooks and not the others?

  7. staganyi member avatar

    Stefan

    10 years ago

    Forgot to mention, if I add the missing hooks to custom/modules/logic_hooks.php, is it possible that file gets regenerated and overwrites my changes?

    • eggsurplus member avatar

      eggsurplus Provider Affiliate

      10 years ago

      SugarCRM will use whatever is currently in logic_hooks.php and rewrite a new version based on it. As for why your logic_hooks was missing 2 of the 4, I cannot tell you why. Haven't seen that ever before and believe it is somehow related to IIS and a SugarCRM oddity. SugarCRM handles the creation of logic_hooks.php. Nothing in the SecuritySuite installation touches it manually.

      Very odd, but I wouldn't worry about it except for when you go to install some other module. Make sure to check the manifest.php for any logic_hooks definitions and to ensure that they get added to custom/modules/logic_hooks.php correctly after install.

  8. staganyi member avatar

    Stefan

    10 years ago

    That's what makes this so weird is that windows 8 & server 2012 run the same version of IIS 8. It works perfectly fine on my win8 installation, but not on server 2012! Anyways, if you're up to it, you could install a trial version of server 2012 in a vm and digg a little deeper. Don't know if you want to keep this open but once again, thanks for all your help.

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