forked from lix-project/hydra
* $currentBuilds{id} can be 0.
This commit is contained in:
parent
70466156e6
commit
82a325a8cd
|
@ -151,7 +151,7 @@ sub checkJobset {
|
|||
# Clear the "current" flag on all builds that are no longer
|
||||
# current.
|
||||
foreach my $build ($jobset->builds->search({iscurrent => 1})) {
|
||||
$build->update({iscurrent => 0}) unless $currentBuilds{$build->id};
|
||||
$build->update({iscurrent => 0}) unless defined $currentBuilds{$build->id};
|
||||
}
|
||||
|
||||
my $hasNewBuilds = 0;
|
||||
|
|
Loading…
Reference in a new issue