FIX_CLIENT_DATA_FETCHING
This commit is contained in:
parent
a44a692667
commit
28bb7728dc
@ -2190,14 +2190,14 @@ class EmployeeRestController extends AdminController
|
|||||||
if (!empty($pre_client_id)) {
|
if (!empty($pre_client_id)) {
|
||||||
|
|
||||||
|
|
||||||
$client = $this->clientModel->where('md5(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('md5(client_id)', $pre_client_id)
|
->where('client_id', $pre_client_id)
|
||||||
->where('client_branch_id', $pre_branch_id)
|
->where('client_branch_id', $pre_branch_id)
|
||||||
->findAll();
|
->findAll();
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user