Fix greeting when using phrases

After saving a phrase for the greeting it would save but it wouldn't show the correct label. It would continue to play the phrase but show the UUID.
This commit is contained in:
FusionPBX
2024-12-23 12:22:44 -07:00
committed by GitHub
parent b6e1a2f775
commit 6524cdcd0b

View File

@@ -849,6 +849,16 @@
unset($selected);
}
}
else if ($key == 'phrases') {
if (!empty($instance_value) && $instance_value == $row["value"]) {
$selected = "selected='selected'";
$playable = '';
$found = true;
}
else {
unset($selected);
}
}
else {
unset($selected);
}