From 5942cfd4db2f9c5760b8d976d3e5aab71ffb9b9f Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 24 Jul 2019 23:09:10 -0600 Subject: [PATCH] Update groupedit.php --- core/groups/groupedit.php | 35 +++++++++++++++++++++++++++++++---- 1 file changed, 31 insertions(+), 4 deletions(-) diff --git a/core/groups/groupedit.php b/core/groups/groupedit.php index 3fd8df5a43..f04a128352 100644 --- a/core/groups/groupedit.php +++ b/core/groups/groupedit.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2008-2014 + Portions created by the Initial Developer are Copyright (C) 2008-2019 the Initial Developer. All Rights Reserved. Contributor(s): @@ -50,11 +50,12 @@ $group_name_previous = $_POST['group_name_previous']; $domain_uuid = $_POST["domain_uuid"]; $domain_uuid_previous = $_POST["domain_uuid_previous"]; + $group_order = $_POST["group_order"]; $group_description = $_POST["group_description"]; //check for global/domain duplicates - $sql = "select count(*) from v_groups where "; - $sql .= "group_name = :group_name "; + $sql = "select count(*) from v_groups "; + $sql .= "where group_name = :group_name "; $sql .= "and group_uuid <> :group_uuid "; if (is_uuid($domain_uuid)) { $sql .= "and domain_uuid = :domain_uuid "; @@ -75,6 +76,7 @@ $array['groups'][0]['group_uuid'] = $group_uuid; $array['groups'][0]['domain_uuid'] = is_uuid($domain_uuid) ? $domain_uuid : null; $array['groups'][0]['group_name'] = $group_name; + $array['groups'][0]['group_order'] = $group_order; $array['groups'][0]['group_description'] = $group_description; $database = new database; $database->app_name = 'groups'; @@ -129,7 +131,6 @@ unset($sql, $parameters); } } - //group changed from one domain to another else if (is_uuid($domain_uuid_previous) && is_uuid($domain_uuid) && $domain_uuid_previous != $domain_uuid) { //remove any users assigned to the group from the old domain @@ -274,6 +275,7 @@ if (is_array($row) && sizeof($row) != 0) { $group_name = $row['group_name']; $domain_uuid = $row['domain_uuid']; + $group_order = $row['group_order']; $group_description = $row['group_description']; } unset($sql, $parameters, $row); @@ -351,6 +353,31 @@ echo ""; } + echo "\n"; + echo "\n"; + echo " ".$text['label-order']."\n"; + echo "\n"; + echo "\n"; + echo " \n"; + echo "
\n"; + echo "\n"; + echo "\n"; + echo "\n"; echo "\n"; echo $text['label-group_description']."\n";