diff --git a/src/Jobs/PublishItemsJob.php b/src/Jobs/PublishItemsJob.php index 69ec26ca..4e1386f7 100644 --- a/src/Jobs/PublishItemsJob.php +++ b/src/Jobs/PublishItemsJob.php @@ -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) {