From 325ada1b5477798b2ad0ba5ec2cb8e25c0fa141e Mon Sep 17 00:00:00 2001 From: Andreas Kristiansen <6977712+AndreasK79@users.noreply.github.com> Date: Mon, 15 Dec 2025 19:36:56 +0100 Subject: [PATCH] Fixed continent return result --- application/controllers/Logbookadvanced.php | 7 +++++-- .../views/logbookadvanced/showUpdateResult.php | 11 +++++++++++ assets/js/sections/logbookadvanced.js | 17 +++-------------- 3 files changed, 19 insertions(+), 16 deletions(-) diff --git a/application/controllers/Logbookadvanced.php b/application/controllers/Logbookadvanced.php index 3f72bb67b..a26716e68 100644 --- a/application/controllers/Logbookadvanced.php +++ b/application/controllers/Logbookadvanced.php @@ -833,8 +833,11 @@ class Logbookadvanced extends CI_Controller { $this->load->model('logbookadvanced_model'); $result = $this->logbookadvanced_model->check_missing_continent(); - header("Content-Type: application/json"); - print json_encode($result); + $data['result'] = $result; + + $data['type'] = 'continent'; + + $this->load->view('logbookadvanced/showUpdateResult', $data); } public function fixStateProgress() { diff --git a/application/views/logbookadvanced/showUpdateResult.php b/application/views/logbookadvanced/showUpdateResult.php index a52c5c87c..55b247dd0 100644 --- a/application/views/logbookadvanced/showUpdateResult.php +++ b/application/views/logbookadvanced/showUpdateResult.php @@ -7,6 +7,9 @@ switch ($type) { case 'state': showStateUpdateResult($result, $country); break; + case 'continent': + showContinentUpdateResult($result); + break; default: // Invalid type break; @@ -103,3 +106,11 @@ function showStateUpdateResult($result, $country) { } } } + +function showContinentUpdateResult($result) { + if ($result == 0) { + echo '