FIX_LIVE_ISSUE_UNDIFINED_ARRAY_KEY_I_AGREED_FOR_ADDON

This commit is contained in:
VENKATESHWARAN 2025-11-26 11:49:06 +05:30
parent 01854c99fb
commit 1143753f36
2 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@ class Filters extends BaseConfig
'authMVC' => AuthMVC::class,
'HttpRequestLog' => HttpRequestLog::class,
'authJWT' => AuthJWT::class,
'CloseDbConnection' => CloseDbConnection::class
'CloseDbConnection' => CloseDbConnection::class,
'Cors' => Cors::class
];
@ -54,7 +54,7 @@ class Filters extends BaseConfig
// 'invalidchars',
],
'after' => [
'CloseDbConnection'
'CloseDbConnection',
'Cors',
// 'secureheaders',
],

View File

@ -2287,7 +2287,7 @@ class EmployeeRestController extends AdminController
$empData = $this->employeeModel->where('emp_code', $emp_code )->where('client_id', $client_id ) ->where('is_active', 1 )->findAll();
$employeeIds = array_column($empData, 'id');
//for mail common parameter
$filteredEmpData = array_filter($empData, fn($item) => $item['relationship'] === 'Self');
$filteredEmpData = array_values(array_filter($empData, fn($item) => $item['relationship'] === 'Self'));
if (!is_null($client_policy_id) && is_array($client_policy_id))
{