CHANGE_new_theme_ui_fixes - VADIVEL J 2025-09-27
This commit is contained in:
parent
4abee8faec
commit
f74a86b798
@ -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'
|
||||
];
|
||||
}
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user