From efac6b8d80d341abcff951ad6511feeceec84f86 Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Mon, 23 Aug 2021 21:56:18 +0100 Subject: [PATCH] Base code for getting select options for station locations --- application/controllers/Logbooks.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/application/controllers/Logbooks.php b/application/controllers/Logbooks.php index 4a6cf7ad0..78556e32e 100644 --- a/application/controllers/Logbooks.php +++ b/application/controllers/Logbooks.php @@ -79,7 +79,17 @@ class Logbooks extends CI_Controller { $data['notice'] = "Station Logbooks ".$this->security->xss_clean($this->input->post('station_logbook_name', true))." Updated"; - redirect('logbooks'); + foreach ($this->input->post('SelectedStationLocations') as $selectedOption){ + echo $selectedOption."\n"; + + // Check if theres already a link between logbook and location + + // If no link exisits create + + // Delete link if removed + } + + //redirect('logbooks'); } }