Skip to content

Commit

Permalink
see cl
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Kunitzsch committed Sep 13, 2019
1 parent b3944dd commit 39c4b55
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
@@ -1,6 +1,11 @@
# Changelog
All notable changes to this project will be documented in this file.

## [1.5.1] - 2019-09-13

#### Fixed
- reset the list config while parsing the items since it might have been reset in parsing process

## [1.5.0] - 2019-09-12

#### Added
Expand Down
3 changes: 3 additions & 0 deletions src/Lists/DefaultList.php
Expand Up @@ -343,6 +343,9 @@ public function parseItems(array $items, string $itemTemplate = null): array
$items = $event->getItems() ?: [];

foreach ($items as $item) {
// reset the list config since it might have been reset while parsing the items
$this->_manager->setListConfig($listConfig);

++$count;
$first = 1 == $count ? ' first' : '';
$last = $count == $limit ? ' last' : '';
Expand Down

0 comments on commit 39c4b55

Please sign in to comment.