FIX_FILE_REMOVE_ISSUE

This commit is contained in:
VENKATESHWARAN 2026-08-06 17:04:28 +05:30
parent 6974930309
commit e581f884ef

View File

@ -329,12 +329,12 @@ class ClaimController extends ResourceController
$updatedBy = $reqData['updated_by'] ?? $reqData['created_by'] ?? null;
// Soft-delete only the file ids sent in remove_file_id.
// Soft-delete only the file ids sent in remove_file_ids.
$deletedFileIds = [];
if (!empty($reqData['remove_file_id'])) {
if (!empty($reqData['remove_file_ids'])) {
$deletedFileIds = $this->softDeleteClaimFilesByIds(
(int) $claimId,
$reqData['remove_file_id'],
$reqData['remove_file_ids'],
$updatedBy
);
}
@ -550,7 +550,7 @@ class ClaimController extends ResourceController
/**
* Soft-delete active claim files by the given ids only.
* Expects remove_file_id as an array, e.g. [5, 7].
* Expects remove_file_ids as an array, e.g. [5, 7].
* Also accepts JSON string "[5,7]" or comma-separated "5,7" from form-data.
*
* @return int[] Soft-deleted file ids