From 8fd4893c5f01d9fa14293fc492b17fb97ca16aad Mon Sep 17 00:00:00 2001 From: "sas.fajri" Date: Thu, 21 May 2026 10:57:59 +0700 Subject: [PATCH] Return header in saveresult --- .../Resultentry.php | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/application/controllers/mockup/resultentrysoothers-cpone-v9/Resultentry.php b/application/controllers/mockup/resultentrysoothers-cpone-v9/Resultentry.php index ebac4921..fdbc8aae 100644 --- a/application/controllers/mockup/resultentrysoothers-cpone-v9/Resultentry.php +++ b/application/controllers/mockup/resultentrysoothers-cpone-v9/Resultentry.php @@ -4368,15 +4368,19 @@ class Resultentry extends MY_Controller $this->sys_error_db("group result tidak ditemukan", $this->db_onedev); exit(); } - } - - $result = array( - "total" => 1, - "records" => array('status' => 'OK') - ); - $this->sys_ok($result); - exit; - } + } + + $sql = "SELECT * FROM so_resultentry WHERE So_ResultEntryID = {$last_id} LIMIT 1"; + $fresh_header = $this->db_onedev->query($sql)->row_array(); + + $result = array( + "total" => 1, + "records" => array('status' => 'OK'), + "header" => $fresh_header + ); + $this->sys_ok($result); + exit; + }