FIX: Skip blank values

This commit is contained in:
Juan Pablo Vial
2025-10-17 19:25:12 -03:00
parent 1ca087e19b
commit 9794070925

View File

@ -261,7 +261,7 @@ class Persona extends Ideal\Service
'birthdate' => 'fecha_nacimiento',
];
foreach ($data as $key => $value) {
if (array_key_exists($key, $dataMap)) {
if (array_key_exists($key, $dataMap) and trim($value) !== '') {
$data[$dataMap[$key]] = $value;
unset($data[$key]);
}