From 3ec33b641fc63c4ad769cf6b592de0264ac34c9f Mon Sep 17 00:00:00 2001 From: Steve Ireland Date: Sun, 12 Mar 2023 12:44:59 -0400 Subject: [PATCH] Correct some experimental code. --- app/Controllers/Items.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/Controllers/Items.php b/app/Controllers/Items.php index 1692376ba..81ed32d06 100644 --- a/app/Controllers/Items.php +++ b/app/Controllers/Items.php @@ -242,9 +242,8 @@ class Items extends Secure_Controller echo json_encode($result); } - public function getView(int $item_id = NEW_ITEM) //TODO: Super long function. Perhaps we need to refactor out some methods. + public function getView(int $item_id = NEW_ITEM): void //TODO: Super long function. Perhaps we need to refactor out some methods. { - log_message('info', '>>> Item view started'); if($item_id === NEW_ITEM) { $data = []; @@ -415,8 +414,7 @@ class Items extends Secure_Controller $data['selected_low_sell_item'] = ''; } - log_message('info', '>>> showing the form'); - return view('items/form', $data); + echo view('items/form', $data); } public function inventory(int $item_id = NEW_ITEM): void