Update Patient create, perbaikan LinkTo tanpa array

This commit is contained in:
mikael-zakaria 2025-08-11 15:50:05 +07:00
parent 7f49cf03b4
commit 51d9ac62cb

View File

@ -89,7 +89,7 @@ class Patient extends Controller {
->whereIn('InternalPID', $ids) ->whereIn('InternalPID', $ids)
->get() ->get()
->getResultArray(); ->getResultArray();
$patient["LinkTo"] = $patientLinkTo == [] ? null : $patientLinkTo; $patient["LinkTo"] = $patientLinkTo == [] ? null : $patientLinkTo[0];
} }
$patidt = $this->db->table('patidt') $patidt = $this->db->table('patidt')