From 903ad964c1180d72f1d175a9445c08cdc4ff8cc8 Mon Sep 17 00:00:00 2001 From: danij Date: Sun, 18 Mar 2012 13:48:05 +0000 Subject: [PATCH] Homepage|Build Repository: Length limited build stream widgets always include that many elements If there are insufficent events in the target chain then the list will be padded with empty elements. --- web/plugins/buildrepository/buildrepository.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/web/plugins/buildrepository/buildrepository.php b/web/plugins/buildrepository/buildrepository.php index 666c055903..3ce01ad878 100644 --- a/web/plugins/buildrepository/buildrepository.php +++ b/web/plugins/buildrepository/buildrepository.php @@ -1606,6 +1606,16 @@ private function outputBuildStreamWidget(&$headEvent, $chainProperty='version', $n++; if($chainLengthMax > 0 && $n >= $chainLengthMax) break; } + + if($chainLengthMax > 0) + { + while($n++ < $chainLengthMax) + { + +?>