mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-02-21 10:26:30 +00:00
Update menu_item_edit.php
This commit is contained in:
@@ -337,11 +337,13 @@ else {
|
||||
|
||||
//get the groups
|
||||
$sql = "select * from v_groups ";
|
||||
$sql .= "where (domain_uuid is null or domain_uuid = :domain_uuid) ";
|
||||
if (is_array($assigned_groups) && sizeof($assigned_groups) != 0) {
|
||||
$sql .= "where group_uuid not in ('".implode("','",$assigned_groups)."') ";
|
||||
$sql .= "and group_uuid not in ('".implode("','",$assigned_groups)."') ";
|
||||
}
|
||||
$sql .= "order by domain_uuid desc, group_name asc ";
|
||||
$database = new database;
|
||||
$parameters['domain_uuid'] = $_SESSION['domain_uuid'];
|
||||
$groups = $database->select($sql, $parameters, 'all');
|
||||
unset($sql, $sql_where, $parameters);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user