From ece7fe534f6f58415ef3f6461208dafabeb9bc6f Mon Sep 17 00:00:00 2001 From: dl6nm Date: Thu, 28 May 2020 23:40:52 +0200 Subject: [PATCH] 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'); } }