mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX Revert r61631 for Translatable but kept SiteTree changes instact from that revision since they are still useful
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.2@61815 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
0f615b7bc6
commit
000749a9d7
@ -630,21 +630,6 @@ class Translatable extends DataObjectDecorator {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the actions available in the CMS.
|
||||
* In particular, this removes all publication functionality when editing a translated page (because it's b0rked).
|
||||
*/
|
||||
function updateCMSActions(FieldSet &$fields) {
|
||||
if (! $this->stat('enabled')) return false;
|
||||
|
||||
if(!self::is_default_lang()) {
|
||||
$fields->removeByName('action_publish');
|
||||
$fields->removeByName('action_rollback');
|
||||
$fields->removeByName('action_unpublish');
|
||||
$fields->removeByName('action_deletefromlive');
|
||||
}
|
||||
}
|
||||
|
||||
protected function duplicateOrReplaceFields(&$fields) {
|
||||
$tasks = array(
|
||||
'dup' => array(),
|
||||
|
Loading…
Reference in New Issue
Block a user