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

#24 - Studio SecurityGroup dropdown limit to first 20

Closed Bug? created by salesagility Verified Purchase 12 years ago

In studio, add Layout the security group drop-down only shows the first 20 groups( or however many you 'Listview items per page' is set to show), if you have more than this you will not be able to select them,

This is caused by the using the get_list function which pages the results:-

from 'modules/ModuleBuilder/views/view.addlayout.php'

        $groupFocus = new SecurityGroup();
        $groups = $groupFocus->get_list("name","",0,0,999);
        $custDirectory = "custom/modules/".$module_name."/metadata/";
        foreach($groups['list'] as $group) {
            if(is_dir($custDirectory.$group->id)) {
                $copy_layouts[$group->id] = $group->name;
            } else {
                $securitygroups[$group->id] = $group->name;
            }
        }

changing it to get_full_list appears to address the issue:-

        $groupFocus = new SecurityGroup();
        $groups = $groupFocus->get_full_list("name");
        $custDirectory = "custom/modules/".$module_name."/metadata/";
        foreach($groups as $group) {
            if(is_dir($custDirectory.$group->id)) {
                $copy_layouts[$group->id] = $group->name;
            } else {
                $securitygroups[$group->id] = $group->name;
            }
        }
  1. eggsurplus member avatar

    eggsurplus Provider Affiliate

    12 years ago

    Excellent! I'll pull that in for future releases.Thanks.

  2. eggsurplus member avatar

    eggsurplus Provider Affiliate

    12 years ago

    Pulled in for the upcoming 6.5.9 release.

This case is public. Please leave out any sensitive information such as URLs, passwords, etc.
Saving Comment Saving Comment...
Rating
Rating
  • "No brainer. I have purchased it for two production installations and not regretted it."

    Read More Reviews