Return header in saveresult

This commit is contained in:
sas.fajri
2026-05-21 10:57:59 +07:00
parent 801673d3d2
commit 8fd4893c5f

View File

@@ -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;
}