Get rid of duplicate columns in ring groups and change some of the wording for 2 comments.
This commit is contained in:
@@ -116,8 +116,6 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||||||
$sql .= "domain_uuid, ";
|
$sql .= "domain_uuid, ";
|
||||||
$sql .= "ring_group_destination_uuid, ";
|
$sql .= "ring_group_destination_uuid, ";
|
||||||
$sql .= "ring_group_uuid, ";
|
$sql .= "ring_group_uuid, ";
|
||||||
$sql .= "domain_uuid, ";
|
|
||||||
$sql .= "ring_group_uuid, ";
|
|
||||||
$sql .= "destination_number, ";
|
$sql .= "destination_number, ";
|
||||||
$sql .= "destination_delay, ";
|
$sql .= "destination_delay, ";
|
||||||
$sql .= "destination_timeout, ";
|
$sql .= "destination_timeout, ";
|
||||||
@@ -128,8 +126,6 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||||||
$sql .= "'$domain_uuid', ";
|
$sql .= "'$domain_uuid', ";
|
||||||
$sql .= "'".uuid()."', ";
|
$sql .= "'".uuid()."', ";
|
||||||
$sql .= "'$ring_group_uuid', ";
|
$sql .= "'$ring_group_uuid', ";
|
||||||
$sql .= "'$domain_uuid', ";
|
|
||||||
$sql .= "'$ring_group_uuid', ";
|
|
||||||
$sql .= "'$destination_number', ";
|
$sql .= "'$destination_number', ";
|
||||||
$sql .= "'$destination_delay', ";
|
$sql .= "'$destination_delay', ";
|
||||||
$sql .= "'$destination_timeout', ";
|
$sql .= "'$destination_timeout', ";
|
||||||
|
|||||||
@@ -127,12 +127,12 @@ else {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//assign the extension to the user
|
//assign the user
|
||||||
if (strlen($_REQUEST["user_uuid"]) > 0 && strlen($_REQUEST["id"]) > 0 && $_GET["a"] != "delete") {
|
if (strlen($_REQUEST["user_uuid"]) > 0 && strlen($_REQUEST["id"]) > 0 && $_GET["a"] != "delete") {
|
||||||
//set the variables
|
//set the variables
|
||||||
$user_uuid = check_str($_REQUEST["user_uuid"]);
|
$user_uuid = check_str($_REQUEST["user_uuid"]);
|
||||||
$extension_uuid = check_str($_REQUEST["id"]);
|
$extension_uuid = check_str($_REQUEST["id"]);
|
||||||
//assign the user to the extension
|
//assign the user to the ring group
|
||||||
$sql_insert = "insert into v_ring_group_users ";
|
$sql_insert = "insert into v_ring_group_users ";
|
||||||
$sql_insert .= "(";
|
$sql_insert .= "(";
|
||||||
$sql_insert .= "ring_group_user_uuid, ";
|
$sql_insert .= "ring_group_user_uuid, ";
|
||||||
|
|||||||
Reference in New Issue
Block a user