Skip to content

Commit 7f5ce27

Browse files
committed
fix: creazione intervento
1 parent 7cdb5b9 commit 7f5ce27

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/interventi/src/Intervento.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public static function build(Anagrafica $anagrafica, TipoSessione $tipo_sessione
8484
$id_sede = $user->sedi[0];
8585
}
8686

87-
$model->idsede_partenza = $id_sede;
87+
$model->idsede_partenza = $id_sede ?: 0;
8888
$model->save();
8989

9090
return $model;

0 commit comments

Comments
 (0)