mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 09:03:49 +00:00
Destinations (Class): Adjust select() method so defaults to top of options when no option selected.
This commit is contained in:
@@ -323,7 +323,9 @@ if (!class_exists('destinations')) {
|
||||
$destination_label = str_replace("menu-exec-app", "", $destination_label);
|
||||
$destination_label = str_replace("transfer", "", $destination_label);
|
||||
$destination_label = str_replace("XML ".$_SESSION['domain_name'], "", $destination_label);
|
||||
$response .= " <option value='".escape($destination_value)."' selected='selected'>".trim($destination_label)."</option>\n";
|
||||
if ($destination_value != '' || $destination_label != '') {
|
||||
$response .= " <option value='".escape($destination_value)."' selected='selected'>".trim($destination_label)."</option>\n";
|
||||
}
|
||||
}
|
||||
$response .= " </select>\n";
|
||||
if (if_group("superadmin")) {
|
||||
|
||||
Reference in New Issue
Block a user