Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Customising the CMS /

Link to "Page on the site" - shows only tree of default locale


Reply


3 Posts   1063 Views

Avatar
raZbi

Community Member, 11 Posts

5 May 2010 at 9:33pm

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.

Avatar
raZbi

Community Member, 11 Posts

5 May 2010 at 10:28pm

Temporary solved with replacing TreeSelectorField.js with an older one, from rc2

Avatar
pelse

Community Member, 11 Posts

23 June 2010 at 1:25am

Edited: 23/06/2010 2:38am

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.