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 @@