From d81f9428ff53952661a476ac8109e67445aa32a7 Mon Sep 17 00:00:00 2001 From: Srinivas-Saravanan Date: Thu, 5 Jun 2025 16:41:58 +0530 Subject: [PATCH] FIX_DUP_CLIENT_FILE_LIST --- app/Controllers/EmployeeController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Controllers/EmployeeController.php b/app/Controllers/EmployeeController.php index 43e600da..3520f90b 100755 --- a/app/Controllers/EmployeeController.php +++ b/app/Controllers/EmployeeController.php @@ -395,7 +395,7 @@ class EmployeeController extends AdminController $query2->where('cr.user_id', $user_id); } // ->where('files.created_by', get_session_userid()) - $data['batch_list'] = $query2->orderBy('batch_files.id', 'desc') + $data['batch_list'] = $query2->groupBy("clients.id")->orderBy('batch_files.id', 'desc') ->limit(1000) ->find();