Skip to content

Commit

Permalink
Update NestableCollection.php
Browse files Browse the repository at this point in the history
  • Loading branch information
sdebacker committed Mar 24, 2015
1 parent f0302a7 commit 5c0fcf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NestableCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function listsFlattened($column = 'title', BaseCollection $collection = n
foreach ($collection as $item) {
$flattened[$item->id] = str_repeat($indentChars, $level) . $item->$column;
if ($item->items) {
$this->listsFlattened($column, $item->items, $level + 1, $flattened);
$this->listsFlattened($column, $item->items, $level + 1, $flattened, $indentChars);
}
}

Expand Down

0 comments on commit 5c0fcf0

Please sign in to comment.