mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Destination Select - Dynamic: Clear session array on add/toggle/delete of a destination type record.
This commit is contained in:
@@ -152,6 +152,11 @@ if (!class_exists('phrases')) {
|
||||
$cache->delete("languages:".$phrase_language);
|
||||
}
|
||||
|
||||
//clear the destinations session array
|
||||
if (isset($_SESSION['destinations']['array'])) {
|
||||
unset($_SESSION['destinations']['array']);
|
||||
}
|
||||
|
||||
//set message
|
||||
message::add($text['message-delete']);
|
||||
}
|
||||
@@ -302,6 +307,11 @@ if (!class_exists('phrases')) {
|
||||
$cache->delete("languages:".$phrase_language);
|
||||
}
|
||||
|
||||
//clear the destinations session array
|
||||
if (isset($_SESSION['destinations']['array'])) {
|
||||
unset($_SESSION['destinations']['array']);
|
||||
}
|
||||
|
||||
//set message
|
||||
message::add($text['message-toggle']);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user