Fix destination edit so it will save again

This commit is contained in:
Mark Crane
2014-06-09 19:41:34 +00:00
parent ad0a5b9a72
commit a2a6363d08

View File

@@ -54,7 +54,7 @@ else {
$dialplan_uuid = check_str($_POST["dialplan_uuid"]);
$destination_type = check_str($_POST["destination_type"]);
$destination_number = check_str($_POST["destination_number"]);
$db_destination_number = check_str($_POST["destination_number"]);
$db_destination_number = check_str($_POST["db_destination_number"]);
$destination_caller_id_name = check_str($_POST["destination_caller_id_name"]);
$destination_caller_id_number = check_str($_POST["destination_caller_id_number"]);
$destination_context = check_str($_POST["destination_context"]);
@@ -63,6 +63,9 @@ else {
$destination_description = check_str($_POST["destination_description"]);
}
//unset the db_destination_number
unset($_POST["db_destination_number"]);
if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
//get the uuid