mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Fix ring group destination_enabled toggle
This commit is contained in:
@@ -594,7 +594,6 @@
|
|||||||
$ring_group_forward_enabled = $ring_group_forward_enabled ?? false;
|
$ring_group_forward_enabled = $ring_group_forward_enabled ?? false;
|
||||||
$ring_group_context = $ring_group_context ?? $domain_name;
|
$ring_group_context = $ring_group_context ?? $domain_name;
|
||||||
$ring_group_enabled = $ring_group_enabled ?? true;
|
$ring_group_enabled = $ring_group_enabled ?? true;
|
||||||
$destination_enabled = $row['destination_enabled'] ?? false;
|
|
||||||
|
|
||||||
//get the ring group destination array
|
//get the ring group destination array
|
||||||
if ($action == "add") {
|
if ($action == "add") {
|
||||||
@@ -628,6 +627,7 @@
|
|||||||
$ring_group_destinations[$id]['destination_delay'] = '';
|
$ring_group_destinations[$id]['destination_delay'] = '';
|
||||||
$ring_group_destinations[$id]['destination_timeout'] = '';
|
$ring_group_destinations[$id]['destination_timeout'] = '';
|
||||||
$ring_group_destinations[$id]['destination_prompt'] = '';
|
$ring_group_destinations[$id]['destination_prompt'] = '';
|
||||||
|
$ring_group_destinations[$id]['destination_enabled'] = false;
|
||||||
$id++;
|
$id++;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -983,8 +983,8 @@
|
|||||||
echo " <span class='switch'>\n";
|
echo " <span class='switch'>\n";
|
||||||
}
|
}
|
||||||
echo " <select class='formfld' id='ring_group_destinations_".$x."_destination_enabled' name='ring_group_destinations[".$x."][destination_enabled]'>\n";
|
echo " <select class='formfld' id='ring_group_destinations_".$x."_destination_enabled' name='ring_group_destinations[".$x."][destination_enabled]'>\n";
|
||||||
echo " <option value='true' ".($destination_enabled === true ? "selected='selected'" : null).">".$text['option-true']."</option>\n";
|
echo " <option value='true' ".($row['destination_enabled'] === true ? "selected='selected'" : null).">".$text['option-true']."</option>\n";
|
||||||
echo " <option value='false' ".($destination_enabled === false ? "selected='selected'" : null).">".$text['option-false']."</option>\n";
|
echo " <option value='false' ".($row['destination_enabled'] === false ? "selected='selected'" : null).">".$text['option-false']."</option>\n";
|
||||||
echo " </select>\n";
|
echo " </select>\n";
|
||||||
if ($input_toggle_style_switch) {
|
if ($input_toggle_style_switch) {
|
||||||
echo " <span class='slider'></span>\n";
|
echo " <span class='slider'></span>\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user