Use the name to find the Select Option Group translation.

This commit is contained in:
FusionPBX 2024-03-27 09:11:43 -06:00 committed by GitHub
parent a9886a8ba9
commit 2171a5f11a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -356,7 +356,7 @@ if (!class_exists('destinations')) {
}
if (!empty($row['result']['data']) && !empty($row['select_value'][$destination_type])) {
$response .= " <optgroup label='".$text2['title-'.$label]."'>\n";
$response .= " <optgroup label='".$text2['title-'.$name]."'>\n";
$label2 = $label;
foreach ($row['result']['data'] as $data) {
$select_value = $row['select_value'][$destination_type];