diff --git a/code/CMSMain.php b/code/CMSMain.php index 8a3bc7a0..d720ab48 100755 --- a/code/CMSMain.php +++ b/code/CMSMain.php @@ -291,9 +291,11 @@ JS; } // Don't open a page from a different locale - /** The record's Locale is saved in database in 2.4, and not related with Session, we should check their locale matches the Translatable::get_current_locale, - * as long as we all the HTTPRequest is init with right locale. - * This bit breaks the all FileIFrameField functions if the field is used in CMS and its relevent ajax calles, like loading the tree dropdown for TreeSelectorField. + /** The record's Locale is saved in database in 2.4, and not related with Session, + * we should not check their locale matches the Translatable::get_current_locale, + * here as long as we all the HTTPRequest is init with right locale. + * This bit breaks the all FileIFrameField functions if the field is used in CMS + * and its relevent ajax calles, like loading the tree dropdown for TreeSelectorField. */ /* if($record && Object::has_extension('SiteTree', 'Translatable') && $record->Locale && $record->Locale != Translatable::get_current_locale()) { $record = null;