Skip to content

Commit

Permalink
Update BulkLoader.php
Browse files Browse the repository at this point in the history
Stage to live with `copyVersionToStage` method
  • Loading branch information
AntonyThorpe committed Jun 15, 2024
1 parent c46f2ce commit ffa03ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BulkLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ protected function processRecord($record, $columnMap, &$results, $preview = fals
$obj->write();

if ($obj instanceof SiteTree && ($obj->isPublished() || $this->publishPages)) {
$obj->publish('Stage', 'Live');
$obj->copyVersionToStage('Stage', 'Live');
}

$obj->flushCache(); // avoid relation caching confusion
Expand Down

0 comments on commit ffa03ef

Please sign in to comment.