CHANGE_new_theme_ui_fixes - VADIVEL J 2025-09-27

This commit is contained in:
vadivelJ96 2025-09-27 11:51:39 +05:30
parent 4abee8faec
commit f74a86b798
3 changed files with 2 additions and 3 deletions

View File

@ -101,6 +101,6 @@ class Autoload extends AutoloadConfig
* @phpstan-var list<string>
*/
public $helpers = ['uuid','session','utility', 'form', 'url', 'oauth', 'fileupload',
'excel_import_export', 'file', 'drive','ExcelSanitizeHelper', 'api_helper','ExceptionHelper'
'excel_import_export', 'file', 'drive','ExcelSanitizeHelper', 'api_helper','exception'
];
}

View File

@ -120,9 +120,8 @@ class ThzController extends BaseController
if ($returnType === 'api') {
if (empty($tickets)) {
// return $this->response->setJSON([ 'status' => 'error','message' => 'No tickets found'])->setStatusCode(404);
$this->myLogger->logme('error', 'empty tickets in ticket list: ' . json_encode($tickets));
throw new \RuntimeException('No tickets found', 400);
return $this->response->setJSON([ 'status' => 'error','message' => 'No tickets found'])->setStatusCode(404);
}
} else {
$data['ticket_data'] = $tickets;