mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-06-29 07:59:37 +02:00
Merge branch '3' into 4
This commit is contained in:
commit
732bdd2734
|
@ -1189,7 +1189,16 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
|
||||||
// TODO Can't merge $FormAttributes in template at the moment
|
// TODO Can't merge $FormAttributes in template at the moment
|
||||||
$form->addExtraClass('center ' . $this->BaseCSSClasses());
|
$form->addExtraClass('center ' . $this->BaseCSSClasses());
|
||||||
// Set validation exemptions for specific actions
|
// Set validation exemptions for specific actions
|
||||||
$form->setValidationExemptActions(array('restore', 'revert', 'deletefromlive', 'delete', 'unpublish', 'rollback', 'doRollback'));
|
$form->setValidationExemptActions(array(
|
||||||
|
'restore',
|
||||||
|
'revert',
|
||||||
|
'deletefromlive',
|
||||||
|
'delete',
|
||||||
|
'unpublish',
|
||||||
|
'rollback',
|
||||||
|
'doRollback',
|
||||||
|
'archive',
|
||||||
|
));
|
||||||
|
|
||||||
// Announce the capability so the frontend can decide whether to allow preview or not.
|
// Announce the capability so the frontend can decide whether to allow preview or not.
|
||||||
if ($record instanceof CMSPreviewable) {
|
if ($record instanceof CMSPreviewable) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user