Merge branch 'bug/new_presu_papel_formato_id' into 'main'

se comprueba que existe la key papel_formato_id al añadir

See merge request jjimenez/safekat!170
This commit is contained in:
2024-02-26 16:32:43 +00:00

View File

@ -100,9 +100,9 @@ class Cosidotapablanda extends \App\Controllers\GoBaseResourceController
// JJO
$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;
}
}
$noException = true;
if ($successfulResult = $this->canValidate($this->model->validationRulesAdd, $this->model->validationMessagesAdd)) : // if ($successfulResult = $this->validate($this->formValidationRules) ) :