mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 06:05:56 +00:00
Merge pull request #1508 from tractorcow/pulls/4.0/fix-rollback-page
BUG Fix rollback page crash
This commit is contained in:
commit
0a7610f245
@ -1174,7 +1174,7 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
|
||||
array('version' => $data['Version'])
|
||||
);
|
||||
} else {
|
||||
$record->doRollbackTo('Live');
|
||||
$record->doRevertToLive();
|
||||
$message = _t(
|
||||
'CMSMain.ROLLEDBACKPUBv2',"Rolled back to published version."
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user