From 6524cdcd0b02b5dc2966729f89629feaf6fdd509 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 23 Dec 2024 12:22:44 -0700 Subject: [PATCH] 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. --- app/ring_groups/ring_group_edit.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/ring_groups/ring_group_edit.php b/app/ring_groups/ring_group_edit.php index 4da6c44602..647ebb4e18 100644 --- a/app/ring_groups/ring_group_edit.php +++ b/app/ring_groups/ring_group_edit.php @@ -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); }