@@ -718,7 +718,7 @@ class ContactsController extends Controller
|
||||
$perPage = $request->has('perPage') ? $request->input('perPage') : config('monica.number_of_contacts_pagination');
|
||||
|
||||
// search contacts
|
||||
$contacts = $contacts->search($request->has('search') ? $request->input('search') : '', $accountId, 'is_starred', 'desc', $sort)
|
||||
$contacts = $contacts->search($request->input('search') ?? '', $accountId, 'is_starred', 'desc', $sort)
|
||||
->paginate($perPage);
|
||||
|
||||
return [
|
||||
|
||||
Reference in New Issue
Block a user