We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cdb5b9 commit 7f5ce27Copy full SHA for 7f5ce27
1 file changed
modules/interventi/src/Intervento.php
@@ -84,7 +84,7 @@ public static function build(Anagrafica $anagrafica, TipoSessione $tipo_sessione
84
$id_sede = $user->sedi[0];
85
}
86
87
- $model->idsede_partenza = $id_sede;
+ $model->idsede_partenza = $id_sede ?: 0;
88
$model->save();
89
90
return $model;
0 commit comments