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,
|
name => $name,
|
||||||
type => $data->{type}
|
type => $data->{type}
|
||||||
};
|
};
|
||||||
$row->{emailresponsible} = $data->{emailresponsible} if defined $data->{emailresponsible};
|
$row->{emailresponsible} = $data->{emailresponsible} // 0;
|
||||||
my $input = $jobset->jobsetinputs->create($row);
|
my $input = $jobset->jobsetinputs->create($row);
|
||||||
$input->jobsetinputalts->create({altnr => 0, value => $data->{value}});
|
$input->jobsetinputalts->create({altnr => 0, value => $data->{value}});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue