diff --git a/app/crm/service/CustomerService.php b/app/crm/service/CustomerService.php index 64e0ce8..9cc5ca1 100644 --- a/app/crm/service/CustomerService.php +++ b/app/crm/service/CustomerService.php @@ -141,7 +141,6 @@ class CustomerService }elseif ($sort == 'follow_last') { $query = $query->orderBy('crm_customer.follow_last', 'desc'); }elseif ($sort == 'follow_next') { - $query = $query->orderBy('crm_customer.follow_next', 'asc'); $query = $query->orderByRaw('crm_customer.follow_next IS NULL, crm_customer.follow_next ASC'); }elseif ($sort == 'id' || empty($sort)) { $query = $query->orderBy('crm_customer.id', 'desc');