mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
BUG Fix rollback page crash
Fixes https://github.com/silverstripe/silverstripe-framework/issues/5532
This commit is contained in:
parent
3be0f394bf
commit
ad213b3576
@ -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