From 445c650706025344b3c43c51239b5606380b820d Mon Sep 17 00:00:00 2001 From: phl0 Date: Wed, 26 Apr 2023 11:25:08 +0200 Subject: [PATCH] Fix export from advanced logbook --- application/models/Logbookadvanced_model.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/models/Logbookadvanced_model.php b/application/models/Logbookadvanced_model.php index a5e4a240..24f0c523 100644 --- a/application/models/Logbookadvanced_model.php +++ b/application/models/Logbookadvanced_model.php @@ -118,9 +118,10 @@ class Logbookadvanced_model extends CI_Model { } $sql = " - SELECT * + SELECT *, dxcc_entities.name AS station_country FROM " . $this->config->item('table_name') . " qsos INNER JOIN station_profile ON qsos.station_id = station_profile.station_id + INNER JOIN dxcc_entities ON qsos.COL_MY_DXCC = dxcc_entities.adif WHERE station_profile.user_id = ? $where ORDER BY qsos.COL_TIME_ON desc