mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-06-29 16:09:40 +02: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'])
|
array('version' => $data['Version'])
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
$record->doRollbackTo('Live');
|
$record->doRevertToLive();
|
||||||
$message = _t(
|
$message = _t(
|
||||||
'CMSMain.ROLLEDBACKPUBv2',"Rolled back to published version."
|
'CMSMain.ROLLEDBACKPUBv2',"Rolled back to published version."
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user