Hydra/64: Leaving number of builds empty gives DBIx error
This commit is contained in:
parent
e080af3daa
commit
c4130a8161
|
@ -229,9 +229,10 @@ sub updateJobset {
|
|||
, nixexprpath => $nixExprPath
|
||||
, nixexprinput => $nixExprInput
|
||||
, enabled => trim($c->request->params->{enabled}) eq "1" ? 1 : 0
|
||||
, buildonlylatest => trim($c->request->params->{buildonlylatest}) eq "1" ? 1 : 0
|
||||
, enableemail => trim($c->request->params->{enableemail}) eq "1" ? 1 : 0
|
||||
, emailoverride => trim($c->request->params->{emailoverride}) || ""
|
||||
, keepnr => trim($c->request->params->{keepnr})
|
||||
, keepnr => trim($c->request->params->{keepnr}) || 3
|
||||
});
|
||||
|
||||
my %inputNames;
|
||||
|
@ -306,6 +307,7 @@ sub clone_submit : Chained('jobset') PathPart('clone/submit') Args(0) {
|
|||
, nixexprpath => $jobset->nixexprpath
|
||||
, nixexprinput => $jobset->nixexprinput
|
||||
, enabled => 0
|
||||
, buildonlylatest => $jobset->buildonlylatest
|
||||
, enableemail => $jobset->enableemail
|
||||
, emailoverride => $jobset->emailoverride || ""
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue