IVR: Persistent context without permission.

This commit is contained in:
Nate 2019-10-05 13:55:55 -06:00
parent bd07582560
commit eda482aa9b
1 changed files with 3 additions and 8 deletions

View File

@ -45,9 +45,6 @@
$language = new text; $language = new text;
$text = $language->get(); $text = $language->get();
//function to show the list of sound files
// moved to functions.php
//action add or update //action add or update
if (is_uuid($_REQUEST["id"]) || is_uuid($_REQUEST["ivr_menu_uuid"])) { if (is_uuid($_REQUEST["id"]) || is_uuid($_REQUEST["ivr_menu_uuid"])) {
$action = "update"; $action = "update";
@ -58,7 +55,6 @@
} }
else { else {
$action = "add"; $action = "add";
$ivr_menu_uuid = uuid();
} }
//get total ivr menu count from the database, check limit, if defined //get total ivr menu count from the database, check limit, if defined
@ -216,13 +212,12 @@
//add a uuid to ivr_menu_uuid if it is empty //add a uuid to ivr_menu_uuid if it is empty
if ($action == 'add') { if ($action == 'add') {
$_POST["ivr_menu_uuid"] = $ivr_menu_uuid; $ivr_menu_uuid = uuid();
} }
//add a uuid to dialplan_uuid if it is empty //add a uuid to dialplan_uuid if it is empty
if (!is_uuid($dialplan_uuid)) { if (!is_uuid($dialplan_uuid)) {
$dialplan_uuid = uuid(); $dialplan_uuid = uuid();
$_POST["dialplan_uuid"] = $dialplan_uuid;
} }
//prepare the array //prepare the array
@ -370,8 +365,8 @@
header("Location: ivr_menu_edit.php?id=".urlencode($ivr_menu_uuid)); header("Location: ivr_menu_edit.php?id=".urlencode($ivr_menu_uuid));
return; return;
} //if ($_POST["persistformvar"] != "true") }
} //(count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) }
//initialize the destinations object //initialize the destinations object
$destination = new destinations; $destination = new destinations;