BUG Fix rollback page crash

Fixes https://github.com/silverstripe/silverstripe-framework/issues/5532
This commit is contained in:
Damian Mooyman 2016-05-23 17:36:58 +12:00
parent 3be0f394bf
commit ad213b3576

View File

@ -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."
);