Destination Select - Dynamic: Clear session array for Outbound Destinations.

This commit is contained in:
fusionate 2020-11-30 15:53:44 -07:00
parent 229bc0ca4e
commit c13c5182ac
2 changed files with 11 additions and 0 deletions

View File

@ -745,6 +745,12 @@
$database->app_uuid = '5ec89622-b19c-3559-64f0-afde802ab139';
$database->save($array);
$dialplan_response = $database->message;
//clear the destinations session array
if (isset($_SESSION['destinations']['array'])) {
unset($_SESSION['destinations']['array']);
}
}
//redirect the user

View File

@ -1063,6 +1063,11 @@ if (!class_exists('destinations')) {
}
}
//clear the destinations session array
if (isset($_SESSION['destinations']['array'])) {
unset($_SESSION['destinations']['array']);
}
//set message
message::add($text['message-delete']);