Destination Select - Dynamic: Clear session array for Outbound Destinations.
This commit is contained in:
@@ -745,6 +745,12 @@
|
|||||||
$database->app_uuid = '5ec89622-b19c-3559-64f0-afde802ab139';
|
$database->app_uuid = '5ec89622-b19c-3559-64f0-afde802ab139';
|
||||||
$database->save($array);
|
$database->save($array);
|
||||||
$dialplan_response = $database->message;
|
$dialplan_response = $database->message;
|
||||||
|
|
||||||
|
//clear the destinations session array
|
||||||
|
if (isset($_SESSION['destinations']['array'])) {
|
||||||
|
unset($_SESSION['destinations']['array']);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//redirect the user
|
//redirect the user
|
||||||
|
|||||||
@@ -1063,6 +1063,11 @@ if (!class_exists('destinations')) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//clear the destinations session array
|
||||||
|
if (isset($_SESSION['destinations']['array'])) {
|
||||||
|
unset($_SESSION['destinations']['array']);
|
||||||
|
}
|
||||||
|
|
||||||
//set message
|
//set message
|
||||||
message::add($text['message-delete']);
|
message::add($text['message-delete']);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user