diff --git a/app/destinations/resources/classes/destinations.php b/app/destinations/resources/classes/destinations.php index 7f52f0587a..6f81f54f33 100644 --- a/app/destinations/resources/classes/destinations.php +++ b/app/destinations/resources/classes/destinations.php @@ -503,10 +503,21 @@ if (!class_exists('destinations')) { foreach($value as $k => $row) { $selected = ($row['destination'] == $destination_value) ? "selected='selected'" : ''; $response .= " \n"; + if ($row['destination'] == $destination_value) { + $response_button = button::create([ + 'type'=>'button', + 'icon'=>'external-link-alt', + 'id'=>'btn_dest_go', + 'title'=>$row['label'], + //'style'=>'margin-left: 15px;', + 'link'=>'/app/'.$key.'/'.$this->singular($key).'_edit.php?id='.$row[$this->singular($key).'_uuid'] + ])."\n"; + } } } } - $response .= " \n"; + $response .= " ".$response_button."\n"; + //debug information //echo $response;