Skip to content
This repository has been archived by the owner on Oct 6, 2022. It is now read-only.

Commit

Permalink
related #60
Browse files Browse the repository at this point in the history
related #61

Signed-off-by: Bruno Meilick <[email protected]>
  • Loading branch information
bnomei committed Feb 21, 2021
1 parent dfd33b2 commit 2287b84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ function searchForTemplate(string $template, string $rootId = ''): \Kirby\Cms\Co
\Bnomei\AutoID::remove($oldPage);
\Bnomei\AutoID::push($newPage);
},
'page.duplicate:after' => function ($duplicatePage) {
'page.duplicate:after' => function ($duplicatePage, $originalPage) {
\Bnomei\AutoID::push($duplicatePage, true);
foreach($duplicatePage->index() as $newPage) {
foreach($duplicatePage->index(true) as $newPage) {
\Bnomei\AutoID::push($newPage, true);
}
},
Expand Down

0 comments on commit 2287b84

Please sign in to comment.