FIX_ERROR_DISPLAY_IMAGE_CHANGES

This commit is contained in:
VENKATESHWARAN 2026-04-27 15:06:57 +05:30
parent 0fd039d3bd
commit 7e4e6f388e
2 changed files with 10 additions and 10 deletions

View File

@ -4539,8 +4539,8 @@ class EmployeeRestController extends AdminController
// print_r($post_data); die; // print_r($post_data); die;
$Query = $this->clientPolicyModel $Query = $this->clientPolicyModel
->select(" ->select("
client_policy.id as client_policy_id , client_policy.id as client_policy_id ,
client_policy.client_id as client_id, client_policy.client_id as client_id,
client_policy.policy_type_id as policy_type_id, client_policy.policy_type_id as policy_type_id,
@ -4553,14 +4553,14 @@ class EmployeeRestController extends AdminController
DATE_FORMAT(client_policy.policy_end_date, '%d-%m-%Y') AS policy_expiry_date, DATE_FORMAT(client_policy.policy_end_date, '%d-%m-%Y') AS policy_expiry_date,
CASE WHEN policy_type.allocg IN ('Non-EB', 'Marine') THEN 'Non-EB' ELSE 'EB' END as allocg CASE WHEN policy_type.allocg IN ('Non-EB', 'Marine') THEN 'Non-EB' ELSE 'EB' END as allocg
", false) ", false)
->join('policy_type', 'policy_type.id = client_policy.policy_type_id', 'left') ->join('policy_type', 'policy_type.id = client_policy.policy_type_id', 'left')
->where('md5(client_policy.client_id)', $post_data['client_id']) ->where('md5(client_policy.client_id)', $post_data['client_id'])
->where('client_policy.client_branch_id', $post_data['client_branch_id']) ->where('client_policy.client_branch_id', $post_data['client_branch_id'])
->where('client_policy.is_active', 1); ->where('client_policy.is_active', 1);
// ->where('client_policy.policy_status', $this->request->getGet('policy_status')) // ->where('client_policy.policy_status', $this->request->getGet('policy_status'))
if(is_array($post_data['policy_id'])){ if (is_array($post_data['policy_id'])) {
$Query->whereIn('client_policy.id', $post_data['policy_id']); $Query->whereIn('client_policy.id', $post_data['policy_id']);
}else{ } else {
$Query->where('client_policy.id', $post_data['policy_id']); $Query->where('client_policy.id', $post_data['policy_id']);
} }
$ClientPolicyData = $Query->first(); $ClientPolicyData = $Query->first();
@ -4590,9 +4590,9 @@ class EmployeeRestController extends AdminController
} }
return $this->respondCreated($responce); return $this->respondCreated($responce);
} catch (\Exception $e) { } catch (\Exception $e) {
// return $this->failServerError($e->getMessage()); // return $this->failServerError($e->getMessage());
log_message('error', 'Error in hrFileUpload: ' . $e->getMessage() . ' in file ' . $e->getFile() . ' on line ' . $e->getLine() . ' Trace: ' . $e->getTraceAsString());
return $this->respondCreated(['status' => false, 'message' => $e->getMessage(), 'data' => []]); return $this->respondCreated(['status' => false, 'message' => $e->getMessage(), 'data' => []]);
} }
} }

View File

@ -143,7 +143,7 @@ class AclFilter implements FilterInterface
$response = service('response'); $response = service('response');
$response->setStatusCode(403); $response->setStatusCode(403);
$response->setBody(view('errors/404', [ $response->setBody(view('errors/403', [
'message' => '403 Access denied - You do not have permission to access this resource' 'message' => '403 Access denied - You do not have permission to access this resource'
])); ]));