Merge pull request #811 from helsinki-systems/fix/override-constraint

Stop violating not null constraint
This commit is contained in:
Eelco Dolstra 2020-11-22 00:02:26 +01:00 committed by GitHub
commit bde8d81876
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,7 +57,7 @@ sub updateDeclarativeJobset {
name => $name,
type => $data->{type}
};
$row->{emailresponsible} = $data->{emailresponsible} if defined $data->{emailresponsible};
$row->{emailresponsible} = $data->{emailresponsible} // 0;
my $input = $jobset->jobsetinputs->create($row);
$input->jobsetinputalts->create({altnr => 0, value => $data->{value}});
}