From 4cd6f0664a6e42f40d07d6acf3e3734541f6cda6 Mon Sep 17 00:00:00 2001 From: phl0 Date: Sun, 4 May 2025 09:25:27 +0200 Subject: [PATCH] Blueprint for keeping values in case of form validation errors --- application/controllers/Station.php | 3 ++- application/views/station_profile/create.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/application/controllers/Station.php b/application/controllers/Station.php index cf519e9a7..be62fd1f2 100644 --- a/application/controllers/Station.php +++ b/application/controllers/Station.php @@ -36,8 +36,9 @@ class Station extends CI_Controller if ($this->form_validation->run() == FALSE) { $data['page_title'] = __("Create Station Location"); + $data['gridsquare'] = $this->input->post('gridsquare'); $this->load->view('interface_assets/header', $data); - $this->load->view('station_profile/create'); + $this->load->view('station_profile/create', $data); $this->load->view('interface_assets/footer'); } else { $this->stations->add(); diff --git a/application/views/station_profile/create.php b/application/views/station_profile/create.php index 3375ef2cb..e242f4440 100644 --- a/application/views/station_profile/create.php +++ b/application/views/station_profile/create.php @@ -139,7 +139,7 @@ if ($dxcc_list->result() > 0) {
- +