Skip to content

Commit

Permalink
Merge pull request #393 from creative-commoners/pulls/4/stop-using-depr
Browse files Browse the repository at this point in the history
API Stop using deprecated API
  • Loading branch information
sabina-talipova authored Dec 5, 2022
2 parents ea5c1b0 + 8533ff7 commit 1c086fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Jobs/PublishItemsJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public function process()
$page = DataObject::get_by_id(Page::class, $ID);
if ($page) {
// publish it
$page->doPublish();
$page->publishRecursive();

// and add its children to the list to be published
foreach ($page->Children() as $child) {
Expand Down

0 comments on commit 1c086fe

Please sign in to comment.