FHM08062601IBL - fix concat nama pasien dengan title prefix suffix di inform consent

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
sas.fajri
2026-06-08 13:29:40 +07:00
parent ca1327a6c2
commit 9eba521e2f
2 changed files with 4 additions and 1 deletions

View File

@@ -112,7 +112,7 @@ class Inform_consent extends MY_Controller
)->row_array();
$printName = trim($cacheRow['ppc_name'] ?? '');
$row['patient_name'] = trim(
($title ? $title . '. ' : '') .
($title ? $title . ' ' : '') .
trim($row['M_PatientPrefix'] ?? '') . ' ' .
trim($printName !== '' ? $printName : ($row['M_PatientName'] ?? '')) . ' ' .
trim($row['M_PatientSuffix'] ?? '')