CHANFE_DOWNLOAD_CD_SPLITUP_FILE_ID_MD5
This commit is contained in:
parent
0d0fc15a03
commit
611814db2a
@ -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);
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user