After upgrading to 2.4.0 got following issue: in the CMS, when trying to add link of type "Page on the site" in the "Page" dropdown shows only site tree in default ( Translatable::set_default_locale("en_US"); ) locale, no matter of page locale.
We've moved the forum!
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
Temporary solved with replacing TreeSelectorField.js with an older one, from rc2
Have the same Problem.
What a bug...
Problem is in file TreeSelectorField.js on Line 194 to 195.
The selector
var localeField = jQuery(this.ownerForm()).find(':input[name=locale],:input[name=Locale],:input[id=Form_EditForm_Locale]');
localeField.val() on line 195 gives back an undefined.
I have commend out both Lines and insert this one
if($('Form_EditForm_Locale')) {ajaxURL += "&locale=" + $('Form_EditForm_Locale').value;}
Now the tree is shown in the right language.