Merge pull request #811 from helsinki-systems/fix/override-constraint
Stop violating not null constraint
This commit is contained in:
commit
bde8d81876
|
@ -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}});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue