FIX_CLIENT_DETAILS
This commit is contained in:
parent
51eebb4356
commit
1a7b92befb
@ -2189,15 +2189,19 @@ class EmployeeRestController extends AdminController
|
|||||||
|
|
||||||
if (!empty($pre_client_id)) {
|
if (!empty($pre_client_id)) {
|
||||||
|
|
||||||
|
if (is_string($pre_client_id) && preg_match('/^[a-f0-9]{32}$/i', $pre_client_id)) {
|
||||||
|
$client = $this->clientModel->where('MD5(id)', $pre_client_id)->first();
|
||||||
|
}else{
|
||||||
|
$client = $this->clientModel->where('id', $pre_client_id)->first();
|
||||||
|
}
|
||||||
|
|
||||||
$client = $this->clientModel->where('id', $pre_client_id)->first();
|
|
||||||
if ($client) {
|
if ($client) {
|
||||||
|
|
||||||
|
|
||||||
$client['client_logo'] = base_url() . 'public/uploads/logo/' . $client['client_logo'];
|
$client['client_logo'] = base_url() . 'public/uploads/logo/' . $client['client_logo'];
|
||||||
|
|
||||||
$clientPolicy = $this->clientPolicyModel
|
$clientPolicy = $this->clientPolicyModel
|
||||||
->where('client_id', $pre_client_id)
|
->where('client_id', $client['id'] ?? null)
|
||||||
->where('client_branch_id', $pre_branch_id)
|
->where('client_branch_id', $pre_branch_id)
|
||||||
->findAll();
|
->findAll();
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user