se comprueba que existe la key papel_formato_id al añadir

This commit is contained in:
Jaime Jiménez Ortega
2024-02-26 17:31:52 +01:00
parent 638f2a0573
commit cd7279e482

View File

@ -100,7 +100,7 @@ class Cosidotapablanda extends \App\Controllers\GoBaseResourceController
// JJO // JJO
$sanitizedData['user_created_id'] = $session->id_user; $sanitizedData['user_created_id'] = $session->id_user;
if ($sanitizedData['papel_formato_id'] == null) { if (!isset($sanitizedData['papel_formato_id']) || $sanitizedData['papel_formato_id'] == null) {
$sanitizedData['papel_formato_id'] = 0; $sanitizedData['papel_formato_id'] = 0;
} }