diff --git a/app/ivr_menu/ivr_menu_edit.php b/app/ivr_menu/ivr_menu_edit.php
index 75fda89411..48fb27c48c 100644
--- a/app/ivr_menu/ivr_menu_edit.php
+++ b/app/ivr_menu/ivr_menu_edit.php
@@ -317,6 +317,14 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
if (strlen($ivr_menu_enabled) == 0) { $ivr_menu_enabled = 'true'; }
if (!isset($ivr_menu_exit_action)) { $ivr_menu_exit_action = ''; }
+//get the recordings
+ $sql = "select * from v_recordings ";
+ $sql .= "where domain_uuid = '".$domain_uuid."' ";
+ $sql .= "order by recording_name asc ";
+ $prep_statement = $db->prepare(check_sql($sql));
+ $prep_statement->execute();
+ $recordings = $prep_statement->fetchAll(PDO::FETCH_ASSOC);
+
//content
require_once "resources/header.php";
$document['title'] = $text['title-ivr_menu'];
@@ -425,25 +433,21 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
//recordings
if($dh = opendir($_SESSION['switch']['recordings']['dir']."/")) {
$tmp_selected = false;
- $files = Array();
echo "\n";
}
//phrases
@@ -517,25 +521,21 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
//recordings
if($dh = opendir($_SESSION['switch']['recordings']['dir']."/")) {
$tmp_selected = false;
- $files = Array();
echo "\n";
}
//phrases