diff --git a/app/Controllers/ThzController.php b/app/Controllers/ThzController.php index 90e039f6..ba25efb8 100644 --- a/app/Controllers/ThzController.php +++ b/app/Controllers/ThzController.php @@ -109,7 +109,7 @@ class ThzController extends BaseController $data = $this->request->getPost(); - $data['notes_type'] = $data['notes_ticket_type'] ?? 'External' ; + $data['notes_type'] = $data['notes_type'] ?? 'External' ; $result = $this->thzMasterNotesModel->insert($data); @@ -161,12 +161,12 @@ class ThzController extends BaseController public function ticketConversationList(){ $data = $this->request->getGet(); - $data = $this->request->getGet(); + $returnType = strtolower($this->request->getGet('return_type') ?? 'api'); $thz_id = $data['thz_id'] ?? null; - $ticketType = $data['notes_ticket_type'] ?? 'External' ; + $ticketType = $data['notes_type'] ?? 'External' ; if($thz_id){ $result['master'] = $this->thzMasterModel