From 228b3d0b31d9bedd81f5698a2e8c730e4e754dad Mon Sep 17 00:00:00 2001 From: Andrew Querol Date: Tue, 23 Mar 2021 00:42:33 -0500 Subject: [PATCH] Fix typo with destination ID for the new destination buttons --- app/destinations/resources/classes/destinations.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/destinations/resources/classes/destinations.php b/app/destinations/resources/classes/destinations.php index efcc87f364..38db669146 100644 --- a/app/destinations/resources/classes/destinations.php +++ b/app/destinations/resources/classes/destinations.php @@ -476,7 +476,7 @@ if (!class_exists('destinations')) { $language2 = new text; //build the destination select list in html - $response .= " \n"; $response .= " \n"; foreach($_SESSION['destinations']['array'][$destination_type] as $key => $value) { $singular = $this->singular($key); @@ -514,7 +514,7 @@ if (!class_exists('destinations')) { 'icon'=>'external-link-alt', 'id'=>'btn_dest_go', 'title'=>$text['label-edit'], - 'onclick'=>"let types = document.getElementById('{destination_id}_type').options; let opts = document.getElementById('{$destination_id}').options; if(opts[opts.selectedIndex].id && opts[opts.selectedIndex].id.length > 0) {window.open('/app/'+types[types.selectedIndex].className+'/'+types[types.selectedIndex].id+'_edit.php?id='+opts[opts.selectedIndex].id, '_blank');}" + 'onclick'=>"let types = document.getElementById('{$destination_id}_type').options; let opts = document.getElementById('{$destination_id}').options; if(opts[opts.selectedIndex].id && opts[opts.selectedIndex].id.length > 0) {window.open('/app/'+types[types.selectedIndex].className+'/'+types[types.selectedIndex].id+'_edit.php?id='+opts[opts.selectedIndex].id, '_blank');}" ])."\n"; //debug information