Skip to content

Commit

Permalink
Merge branch '4' into 5
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Sep 1, 2022
2 parents aa4ba82 + 2b8bee7 commit d566825
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/Controllers/CMSMain.php
Original file line number Diff line number Diff line change
Expand Up @@ -2080,7 +2080,7 @@ public function doRollback($data, $form)
}

if ($version) {
$record->doRollbackTo($version);
$record->rollbackRecursive($version);
$message = _t(
__CLASS__ . '.ROLLEDBACKVERSIONv2',
"Rolled back to version #{version}.",
Expand Down
2 changes: 1 addition & 1 deletion tests/php/Controllers/CMSSiteTreeFilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function testChangedPagesFilter()
$changedPage->Title = 'Changed 2';
$changedPage->write();
$changedPage->copyVersionToStage(Versioned::DRAFT, Versioned::LIVE);
$changedPage->doRollbackTo($changedPageVersion);
$changedPage->rollbackRecursive($changedPageVersion);

$f = new CMSSiteTreeFilter_ChangedPages(['Term' => 'Changed']);
$results = $f->pagesIncluded();
Expand Down

0 comments on commit d566825

Please sign in to comment.