Destination Select - Dynamic: Clear session array on add/toggle/delete of a destination type record.

This commit is contained in:
fusionate
2020-11-30 14:15:57 -07:00
parent f6334ad9d0
commit c67c8cd4c2
30 changed files with 215 additions and 9 deletions
+6
View File
@@ -425,6 +425,12 @@
foreach ($parent_uuids as $x => $row) {
$cache->delete("configuration:ivr.conf:".$row['ivr_menu_parent_uuid']);
}
//clear the destinations session array
if (isset($_SESSION['destinations']['array'])) {
unset($_SESSION['destinations']['array']);
}
//set the add message
if ($action == "add" && permission_exists('ivr_menu_add')) {
message::add($text['message-add']);
@@ -170,6 +170,11 @@ if (!class_exists('ivr_menu')) {
}
}
//clear the destinations session array
if (isset($_SESSION['destinations']['array'])) {
unset($_SESSION['destinations']['array']);
}
//set message
message::add($text['message-delete']);
}
@@ -329,6 +334,11 @@ if (!class_exists('ivr_menu')) {
$cache->delete("configuration:ivr.conf:".$ivr_menu_uuid);
}
//clear the destinations session array
if (isset($_SESSION['destinations']['array'])) {
unset($_SESSION['destinations']['array']);
}
//set message
message::add($text['message-toggle']);
}