Fix PageCollection::remove() checking Page::id() instead of Page::path()

This commit is contained in:
Giuseppe Criscione 2019-06-05 01:02:41 +02:00
parent 9a6e1bb46a
commit d535243424

View File

@ -63,7 +63,7 @@ class PageCollection extends Collection
{
$pageCollection = clone $this;
foreach ($pageCollection->items as $key => $item) {
if ($item->id() === $element->id()) {
if ($item->path() === $element->path()) {
unset($pageCollection->items[$key]);
}
}