diff --git a/app/Controllers/EmployeeRestController.php b/app/Controllers/EmployeeRestController.php index 70fcb894..a3368b66 100755 --- a/app/Controllers/EmployeeRestController.php +++ b/app/Controllers/EmployeeRestController.php @@ -5447,7 +5447,7 @@ class EmployeeRestController extends AdminController $file_id = $this->request->getGet('id'); // Find record - $record = $this->batchFileModel->where('id', $file_id)->first();; + $record = $this->batchFileModel->where('MD5(id)', $file_id)->first(); if (!$record) { $data['message'] = 'File record not found'; return view('errors/404', $data); diff --git a/app/Models/ClientPolicyModel.php b/app/Models/ClientPolicyModel.php index b11c97f6..762e8c40 100755 --- a/app/Models/ClientPolicyModel.php +++ b/app/Models/ClientPolicyModel.php @@ -316,7 +316,7 @@ class ClientPolicyModel extends Model ->select('user_profiles.first_name as username') ->select("CASE WHEN cash_deposit.file_id IS NOT NULL AND cash_deposit.file_id != '' - THEN CONCAT(" . $this->db->escape($url) . ", cash_deposit.file_id) + THEN CONCAT(" . $this->db->escape($url) . ", MD5(cash_deposit.file_id)) ELSE NULL END AS split_up_url", false)