CHANFE_DOWNLOAD_CD_SPLITUP_FILE_ID_MD5

This commit is contained in:
VENKATESHWARAN 2026-02-10 12:17:57 +05:30
parent 0d0fc15a03
commit 611814db2a
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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)