From 644c8070311e82d35c39c6e1f0d37cc8aba53665 Mon Sep 17 00:00:00 2001 From: Andrew Aitken-Fincham Date: Wed, 17 Feb 2016 10:20:38 +1300 Subject: [PATCH] BUG Use correct formaction for doRollback exemption #1378 --- code/controllers/CMSMain.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/controllers/CMSMain.php b/code/controllers/CMSMain.php index ad3311f8..d99c644d 100644 --- a/code/controllers/CMSMain.php +++ b/code/controllers/CMSMain.php @@ -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))) {