mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
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:
parent
5a8b98e3b7
commit
832410b625
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user