From a043060a8c4dbbc21fa8d947c5f3c4fe424c3e98 Mon Sep 17 00:00:00 2001 From: Andreas <6977712+AndreasK79@users.noreply.github.com> Date: Wed, 2 Aug 2023 10:17:22 +0200 Subject: [PATCH] [Labels] Added papertypes to dropdown for editing labels --- application/controllers/Labels.php | 2 ++ application/views/labels/edit.php | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/application/controllers/Labels.php b/application/controllers/Labels.php index d3c7ae77..cc7dd50f 100644 --- a/application/controllers/Labels.php +++ b/application/controllers/Labels.php @@ -322,6 +322,8 @@ class Labels extends CI_Controller { $data['label'] = $this->labels_model->getLabel($cleanid); + $data['papertypes'] = $this->labels_model->fetchPapertypes($this->session->userdata('user_id')); + $data['page_title'] = "Edit Label"; $this->load->view('interface_assets/header', $data); diff --git a/application/views/labels/edit.php b/application/views/labels/edit.php index 695fded7..f9352562 100644 --- a/application/views/labels/edit.php +++ b/application/views/labels/edit.php @@ -28,8 +28,16 @@