File merge issue
This commit is contained in:
parent
8b9f6b9da8
commit
7c843e4ac8
@ -72,6 +72,14 @@ if (! function_exists('merge_ticket_pdfs')) {
|
||||
return $result;
|
||||
}
|
||||
|
||||
if (count($rows) ==1){
|
||||
//set file_type for for that one file.
|
||||
$claimFiles->where('id', $rows[0]['id'])->set(['file_type' => 4])->update();
|
||||
$result['status'] = true;
|
||||
$result['message'] = 'Only one PDF/image file to merge';
|
||||
return $result;
|
||||
}
|
||||
|
||||
$uploadDir = rtrim(WRITEPATH, '/\\') . DIRECTORY_SEPARATOR
|
||||
. 'uploads' . DIRECTORY_SEPARATOR
|
||||
. 'claim_files' . DIRECTORY_SEPARATOR;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user