From e1280b3bbe5ebe8c3c5fe0fdb3c2c1d04c9d5781 Mon Sep 17 00:00:00 2001 From: DevSoftTech Server Date: Thu, 3 Sep 2026 06:57:21 +0530 Subject: [PATCH] Fix column name source_id to entity_id in abdm_work_tasks query in show_profile_opd --- app/Controllers/Patient.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Controllers/Patient.php b/app/Controllers/Patient.php index 2baaa89..3dca5d3 100644 --- a/app/Controllers/Patient.php +++ b/app/Controllers/Patient.php @@ -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; } }