BUGFIX Using language dropdown to determine locale for partial tree ajax loads, because we can't rely on a page with a hidden "Locale" field being loaded in the CMS. Fixed bug with wrong spelling of "locale" argument. (see #3995).

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@78118 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2009-05-28 23:10:57 +00:00
parent 5a8b98e3b7
commit 832410b625

View File

@ -50,7 +50,7 @@ TreeAPI.prototype = {
this.innerHTML = 'Loading...';
var args = {ajax:1, ID:0};
if ($('Form_EditForm_Locale')) args.local = $('Form_EditForm_Locale').value;
if ($('LangSelector')) args.locale = $('LangSelector').value;
url = this.url(args);
@ -219,7 +219,7 @@ TreeNodeAPI.prototype = {
}
var args = {ajax:1, ID:this.getIdx()};
if ($('Form_EditForm_Locale')) args.local = $('Form_EditForm_Locale').value;
if ($('LangSelector')) args.locale = $('LangSelector').value;
url = this.tree.url(args);