FIX: Skip blank values
This commit is contained in:
@ -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]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user