Apellido materno en blanco

This commit is contained in:
Juan Pablo Vial
2025-05-23 12:12:34 -04:00
parent 3b03c4b64b
commit 896dded6eb
3 changed files with 6 additions and 6 deletions

View File

@ -77,7 +77,7 @@ class Propietario extends Ideal\Repository
{
$this->saveNew(
['rut', 'dv', 'nombres', 'apellido_paterno', 'apellido_materno', 'direccion', 'email', 'telefono', 'otro', 'representante'],
[$model->rut, $model->dv, $model->nombres, $model->apellidos['paterno'], $model->apellidos['materno'], $model->datos?->direccion->id, $model->datos?->email, $model->datos?->telefono, $model->otro->rut ?? 0, $model->contacto->rut ?? 0]
[$model->rut, $model->dv, $model->nombres, $model->apellidos['paterno'], $model->apellidos['materno'] ?? '', $model->datos?->direccion->id, $model->datos?->email, $model->datos?->telefono, $model->otro->rut ?? 0, $model->contacto->rut ?? 0]
);
return $model;
}