From f1fbbad7ab864873e00999da5fa3e92bd4621173 Mon Sep 17 00:00:00 2001 From: Andrew Querol Date: Mon, 22 Mar 2021 23:24:15 -0500 Subject: [PATCH] Recordings are stored in 'uuid' not 'recording_uuid' --- app/destinations/resources/classes/destinations.php | 5 +++-- app/destinations/resources/destinations.php | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/destinations/resources/classes/destinations.php b/app/destinations/resources/classes/destinations.php index d95d234d2e..399c6c44dd 100644 --- a/app/destinations/resources/classes/destinations.php +++ b/app/destinations/resources/classes/destinations.php @@ -502,8 +502,9 @@ if (!class_exists('destinations')) { foreach($_SESSION['destinations']['array'][$destination_type] as $key => $value) { if ($key == $destination_key) { foreach($value as $k => $row) { - $selected = ($row['destination'] == $destination_value) ? "selected='selected'" : ''; - $response .= " \n"; + $selected = ($row['destination'] == $destination_value) ? "selected='selected'" : ''; + $uuid = $row[$this->singular($key).'_uuid'] ?? $row['uuid']; + $response .= " \n"; } } } diff --git a/app/destinations/resources/destinations.php b/app/destinations/resources/destinations.php index 29595bf316..bd046637d1 100644 --- a/app/destinations/resources/destinations.php +++ b/app/destinations/resources/destinations.php @@ -51,7 +51,8 @@ $select_label = str_replace('email-icon', '✉', $select_label); //add the select option - echo " \n"; + $uuid = $row[$singular.'_uuid'] ?? $row['uuid']; + echo " \n"; } } }