diff --git a/app/time_conditions/time_condition_edit.php b/app/time_conditions/time_condition_edit.php index d8cbb43580..957c5cb812 100644 --- a/app/time_conditions/time_condition_edit.php +++ b/app/time_conditions/time_condition_edit.php @@ -1082,7 +1082,7 @@ if ($action == 'update') { echo " "; echo " "; echo " "; - echo $destination->select('dialplan', 'dialplan_action['.$preset_group_id.']', $dialplan_action); + echo $destination->select('dialplan', 'dialplan_action['.$preset_group_id.']', $dialplan_actions[$preset_group_id]); echo " "; echo " "; echo " "; @@ -1122,7 +1122,6 @@ if ($action == 'update') { echo " $('#value_".$preset_group_id."_' + condition_id + '_start option[value=\"".$cond_val_start."\"]').prop('selected', true);\n"; echo " $('#value_".$preset_group_id."_' + condition_id + '_stop option[value=\"".$cond_val_stop."\"]').prop('selected', true);\n"; } - echo " $('#dialplan_action_".$preset_group_id." option[value=\"".$dialplan_actions[$preset_group_id]."\"]').prop('selected', true);\n\n"; echo ""; } } @@ -1157,7 +1156,7 @@ if ($action == 'update') { echo " "; echo " "; echo button::create(['type'=>'button','label'=>$text['button-advanced'],'icon'=>'tools','onclick'=>"$(this).fadeOut(400, function() { $('#default_preset_destination').fadeIn(400); document.getElementById('default_preset_destination_description').innerHTML += '
".$text['description-presets_advanced']."'; });"]); - echo " "; + echo " "; echo " "; @@ -1271,4 +1270,4 @@ if ($action == 'update') { //include the footer require_once "resources/footer.php"; -?> +?> \ No newline at end of file