FIX_ISSUE

This commit is contained in:
VENKATESHWARAN 2026-08-06 17:08:13 +05:30
parent e581f884ef
commit b0b502fd7b

View File

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