From d76e7e74d5748ac7030284a4a9b2fabf215b0859 Mon Sep 17 00:00:00 2001 From: Andreas <6977712+AndreasK79@users.noreply.github.com> Date: Wed, 2 Aug 2023 10:34:19 +0200 Subject: [PATCH] [Labels] Added custom papertypes to create label --- application/controllers/Labels.php | 3 +++ application/views/labels/create.php | 8 ++++++++ application/views/labels/edit.php | 4 +++- 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/application/controllers/Labels.php b/application/controllers/Labels.php index cc7dd50f..e3bb0cbe 100644 --- a/application/controllers/Labels.php +++ b/application/controllers/Labels.php @@ -71,6 +71,9 @@ class Labels extends CI_Controller { $data['page_title'] = "Create Label Type"; $this->load->library('form_validation'); + $this->load->model('labels_model'); + + $data['papertypes'] = $this->labels_model->fetchPapertypes($this->session->userdata('user_id')); $this->form_validation->set_rules('label_name', 'Label Name', 'required'); diff --git a/application/views/labels/create.php b/application/views/labels/create.php index daf88f55..39b3c3b7 100644 --- a/application/views/labels/create.php +++ b/application/views/labels/create.php @@ -28,8 +28,16 @@