From ece7fe534f6f58415ef3f6461208dafabeb9bc6f Mon Sep 17 00:00:00 2001 From: dl6nm Date: Thu, 28 May 2020 23:40:52 +0200 Subject: [PATCH 1/3] Keep form data in user/add view on error --- application/controllers/User.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/controllers/User.php b/application/controllers/User.php index 7c1db98c..0a9e37be 100644 --- a/application/controllers/User.php +++ b/application/controllers/User.php @@ -52,7 +52,7 @@ class User extends CI_Controller { $data['user_callsign'] = $this->input->post('user_callsign'); $data['user_locator'] = $this->input->post('user_locator'); $data['user_timezone'] = $this->input->post('user_timezone'); - $this->load->view('user/add'); + $this->load->view('user/add', $data); } else { $this->load->view('user/add', $data); } @@ -88,7 +88,7 @@ class User extends CI_Controller { $data['user_lastname'] = $this->input->post('user_lastname'); $data['user_callsign'] = $this->input->post('user_callsign'); $data['user_locator'] = $this->input->post('user_locator'); - $this->load->view('user/add'); + $this->load->view('user/add', $data); $this->load->view('interface_assets/footer'); } } From 4e70f77c208775eb75264c9f2072dadbe8880119 Mon Sep 17 00:00:00 2001 From: dl6nm Date: Tue, 2 Jun 2020 22:21:22 +0200 Subject: [PATCH 2/3] Also keep timezone form data on error --- application/views/user/add.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/application/views/user/add.php b/application/views/user/add.php index 0c2e19a3..d33f7184 100644 --- a/application/views/user/add.php +++ b/application/views/user/add.php @@ -76,7 +76,10 @@
- +
From b92ea294c9a63f66272af8045d277a915f9ce881 Mon Sep 17 00:00:00 2001 From: dl6nm Date: Tue, 2 Jun 2020 22:41:30 +0200 Subject: [PATCH 3/3] Added missing closing brace --- application/controllers/User_Logbooks.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/application/controllers/User_Logbooks.php b/application/controllers/User_Logbooks.php index 02e5cf20..08d5c6a8 100644 --- a/application/controllers/User_Logbooks.php +++ b/application/controllers/User_Logbooks.php @@ -16,4 +16,6 @@ class Logbooks extends CI_Controller { public function index() { echo 'Functions to come'; - } \ No newline at end of file + } + +}