Hydra/64: Leaving number of builds empty gives DBIx error

This commit is contained in:
Rob Vermaas 2011-05-16 08:03:06 +00:00
parent e080af3daa
commit c4130a8161

View file

@ -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 || ""
});