mirror of
https://github.com/getformwork/formwork.git
synced 2025-02-24 17:52:41 +01:00
Fix PageCollection::remove()
checking Page::id()
instead of Page::path()
This commit is contained in:
parent
9a6e1bb46a
commit
d535243424
@ -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]);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user