diff --git a/code/CMSBatchActionHandler.php b/code/CMSBatchActionHandler.php index 2fdc4e83..6ad63c54 100644 --- a/code/CMSBatchActionHandler.php +++ b/code/CMSBatchActionHandler.php @@ -1,4 +1,5 @@ $v) if(!is_numeric($v)) unset($ids[$k]); if($ids) { + if(Object::has_extension('SiteTree','Translatable')) Translatable::disable_locale_filter(); + $pages = DataObject::get( $this->recordClass, sprintf( @@ -89,6 +93,8 @@ class CMSBatchActionHandler extends RequestHandler { ) ); + if(Object::has_extension('SiteTree','Translatable')) Translatable::enable_locale_filter(); + if(Object::has_extension($this->recordClass, 'Versioned')) { // If we didn't query all the pages, then find the rest on the live site if(!$pages || $pages->Count() < sizeof($ids)) {