From d7533a2a57b25f6acf308011e15f7b2b0204cf95 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Mon, 9 Jun 2014 19:41:34 +0000 Subject: [PATCH] Fix destination edit so it will save again --- app/destinations/destination_edit.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/destinations/destination_edit.php b/app/destinations/destination_edit.php index d11abb701f..0e74734474 100644 --- a/app/destinations/destination_edit.php +++ b/app/destinations/destination_edit.php @@ -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