From 9a2abd2f1ec8109f7ec91639ce937b73da5f8059 Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Sun, 23 Jun 2019 16:11:55 +0100 Subject: [PATCH] You can now delete a QSO via the cog dropdown --- application/controllers/Qso.php | 5 +++++ application/views/view_log/partial/log.php | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/application/controllers/Qso.php b/application/controllers/Qso.php index 84dd207d..e159fd0d 100755 --- a/application/controllers/Qso.php +++ b/application/controllers/Qso.php @@ -133,6 +133,11 @@ class QSO extends CI_Controller { $data['message_contents'] = "QSO Deleted Successfully"; $this->load->view('messages/message', $data); + + // If deletes from /logbook dropdown redirect + if (strpos($_SERVER['HTTP_REFERER'], '/logbook') !== false) { + redirect($_SERVER['HTTP_REFERER']); + } } diff --git a/application/views/view_log/partial/log.php b/application/views/view_log/partial/log.php index a901e5b4..13e325e2 100644 --- a/application/views/view_log/partial/log.php +++ b/application/views/view_log/partial/log.php @@ -69,12 +69,17 @@