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
@@ -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];