forked from lix-project/hydra
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
|
, nixexprpath => $nixExprPath
|
||||||
, nixexprinput => $nixExprInput
|
, nixexprinput => $nixExprInput
|
||||||
, enabled => trim($c->request->params->{enabled}) eq "1" ? 1 : 0
|
, 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
|
, enableemail => trim($c->request->params->{enableemail}) eq "1" ? 1 : 0
|
||||||
, emailoverride => trim($c->request->params->{emailoverride}) || ""
|
, emailoverride => trim($c->request->params->{emailoverride}) || ""
|
||||||
, keepnr => trim($c->request->params->{keepnr})
|
, keepnr => trim($c->request->params->{keepnr}) || 3
|
||||||
});
|
});
|
||||||
|
|
||||||
my %inputNames;
|
my %inputNames;
|
||||||
|
@ -306,6 +307,7 @@ sub clone_submit : Chained('jobset') PathPart('clone/submit') Args(0) {
|
||||||
, nixexprpath => $jobset->nixexprpath
|
, nixexprpath => $jobset->nixexprpath
|
||||||
, nixexprinput => $jobset->nixexprinput
|
, nixexprinput => $jobset->nixexprinput
|
||||||
, enabled => 0
|
, enabled => 0
|
||||||
|
, buildonlylatest => $jobset->buildonlylatest
|
||||||
, enableemail => $jobset->enableemail
|
, enableemail => $jobset->enableemail
|
||||||
, emailoverride => $jobset->emailoverride || ""
|
, emailoverride => $jobset->emailoverride || ""
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue