#24 - Studio SecurityGroup dropdown limit to first 20
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;
}
}
12 years ago
Excellent! I'll pull that in for future releases.Thanks.
12 years ago
Pulled in for the upcoming 6.5.9 release.