Merge pull request #1396 from andrewandante/3.1-rollback-exemption

BUG Use correct formaction for doRollback exemption #1378
This commit is contained in:
Damian Mooyman 2016-02-17 16:29:58 +13:00
commit 13f21231d6

View File

@ -644,7 +644,7 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
// if($form->Fields()->hasTabset()) $form->Fields()->findOrMakeTab('Root')->setTemplate('CMSTabSet');
$form->setAttribute('data-pjax-fragment', 'CurrentForm');
// Set validation exemptions for specific actions
$form->setValidationExemptActions(array('restore', 'revert', 'deletefromlive', 'rollback'));
$form->setValidationExemptActions(array('restore', 'revert', 'deletefromlive', 'rollback', 'doRollback'));
// Announce the capability so the frontend can decide whether to allow preview or not.
if(in_array('CMSPreviewable', class_implements($record))) {