mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 19:53:56 +00:00
Fix a bug that made the the IVR Menu not play the long greeting when the short greeting was not provided.
This commit is contained in:
@@ -122,6 +122,10 @@ if (count($_POST)>0) {
|
||||
$ivr_menu_enabled = check_str($_POST["ivr_menu_enabled"]);
|
||||
$ivr_menu_description = check_str($_POST["ivr_menu_description"]);
|
||||
|
||||
if (isset($ivr_menu_greet_long) && !isset($ivr_menu_greet_short)) {
|
||||
// $ivr_menu_greet_short = $ivr_menu_greet_long;
|
||||
}
|
||||
|
||||
$ivr_menu_exit_action = check_str($_POST["ivr_menu_exit_action"]);
|
||||
//$ivr_menu_exit_action = "transfer:1001 XML default";
|
||||
$timeout_action_array = explode(":", $ivr_menu_exit_action);
|
||||
@@ -481,7 +485,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
|
||||
echo "\n";
|
||||
echo " <select name='ivr_menu_greet_short' class='formfld' onchange='changeToInput(this);'\">\n";
|
||||
echo " <select name='ivr_menu_greet_short' class='formfld' onchange='changeToInput(this);'>\n";
|
||||
echo " <option></option>\n";
|
||||
//misc
|
||||
if (if_group("superadmin")) {
|
||||
@@ -535,7 +539,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
echo "</optgroup>\n";
|
||||
//select
|
||||
if (if_group("superadmin")) {
|
||||
if (!$tmp_selected) {
|
||||
if (!$tmp_selected && strlen($ivr_menu_greet_short) > 0) {
|
||||
echo "<optgroup label='selected'>\n";
|
||||
if (file_exists($_SESSION['switch']['recordings']['dir']."/".$ivr_menu_greet_short)) {
|
||||
echo " <option value='".$_SESSION['switch']['recordings']['dir']."/".$ivr_menu_greet_short."' selected='selected'>".$ivr_menu_greet_short."</option>\n";
|
||||
|
||||
Reference in New Issue
Block a user