mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Fixed that blank group is selectable when group access restricted users
create custom report. (cherry picked from commit eb8d2c786d0d4a260df7d9e1a1a425edd239243f)
This commit is contained in:
parent
a3f303b503
commit
5d822f275a
@ -72,7 +72,7 @@ $write_groups = users_get_groups_for_select(false, "RW",
|
|||||||
users_can_manage_group_all(), true, false, 'id_grupo');
|
users_can_manage_group_all(), true, false, 'id_grupo');
|
||||||
|
|
||||||
// If the report group is not among the RW groups (special permission) we add it
|
// If the report group is not among the RW groups (special permission) we add it
|
||||||
if (!isset($write_groups[$idGroupReport])) {
|
if (!isset($write_groups[$idGroupReport]) && $idGroupReport) {
|
||||||
$write_groups[$idGroupReport] = groups_get_name($idGroupReport);
|
$write_groups[$idGroupReport] = groups_get_name($idGroupReport);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user