FIX_LEAD_LIST_500_ERROR
This commit is contained in:
parent
d89cfd4ed9
commit
2dee0dc63e
@ -344,10 +344,15 @@ class LeadsController extends BaseController
|
||||
$where = [];
|
||||
foreach ($search_data as $search_objects => $key) {
|
||||
if ($key != null && $key != '' && $key != 0 && $search_objects != 'is_dashboard') {
|
||||
$where[$search_objects] = $key;
|
||||
if($search_objects == 'status')
|
||||
{
|
||||
$where[('leads.'.$search_objects)] = $key;
|
||||
}else{
|
||||
$where[$search_objects] = $key;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// !dd($where);
|
||||
$data['lead_data_list'] = $this->leadsModel->getLeadDataForLising($where);
|
||||
|
||||
$html = view('leads_list', $data);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user