Allow setting keepnr to 0

This commit is contained in:
Eelco Dolstra 2013-09-18 11:27:37 +02:00
parent c667b9112d
commit 3b70a807b5

View file

@ -284,7 +284,7 @@ sub updateJobset {
, enableemail => defined $c->stash->{params}->{enableemail} ? 1 : 0
, emailoverride => trim($c->stash->{params}->{emailoverride}) || ""
, hidden => defined $c->stash->{params}->{visible} ? 0 : 1
, keepnr => int(trim($c->stash->{params}->{keepnr})) || 3
, keepnr => int(trim($c->stash->{params}->{keepnr}))
, checkinterval => int(trim($c->stash->{params}->{checkinterval}))
, triggertime => $enabled ? $jobset->triggertime // time() : undef
});