Fix destination edit so it will save again
This commit is contained in:
parent
3d86cbc7b7
commit
d7533a2a57
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue