Browse files

BUGFIX Make sure leaf NewsHolder nodes display just their children in…

…stead of ALL news articles
  • Loading branch information...
1 parent fca5ead commit f8cac65e4c9012a6cb33b1691dd43c0c93593f2a @nyeholt committed Nov 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 code/pages/NewsHolder.php
View
2 code/pages/NewsHolder.php
@@ -99,7 +99,7 @@ public function Articles($number=null) {
if ($subholders) {
$subholders->push($this);
} else {
- $subholders = new DataList($this->class);
+ $subholders = null;
}
if ($subholders && $subholders->Count()) {

0 comments on commit f8cac65

Please sign in to comment.