Fix column name source_id to entity_id in abdm_work_tasks query in show_profile_opd

This commit is contained in:
DevSoftTech Server 2026-09-03 06:57:21 +05:30
parent 625c642b02
commit e1280b3bbe

View File

@ -1505,11 +1505,11 @@ class Patient extends BaseController
if (! empty($fileIds) && $this->db->tableExists('abdm_work_tasks')) {
$taskRows = $this->db->table('abdm_work_tasks')
->where('source_module', 'file_upload_data')
->whereIn('source_id', array_map('strval', $fileIds))
->whereIn('entity_id', array_map('strval', $fileIds))
->get()
->getResultArray();
foreach ($taskRows as $tRow) {
$taskMap[(int) ($tRow['source_id'] ?? 0)] = $tRow;
$taskMap[(int) ($tRow['entity_id'] ?? 0)] = $tRow;
}
}