mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: Make sure Linkto Dropdown works right with filter() (from r96705)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@102334 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
5c6f3d59d7
commit
07aae82ac7
@ -229,7 +229,8 @@ TreeDropdownField.prototype = {
|
|||||||
var ajaxURL = this.options.dropdownField.helperURLBase() + 'tree/' + this.getIdx();
|
var ajaxURL = this.options.dropdownField.helperURLBase() + 'tree/' + this.getIdx();
|
||||||
ajaxURL += $('SecurityID') ? '&SecurityID=' + $('SecurityID').value : '';
|
ajaxURL += $('SecurityID') ? '&SecurityID=' + $('SecurityID').value : '';
|
||||||
if($('Form_EditForm_Locale')) ajaxURL += "&locale=" + $('Form_EditForm_Locale').value;
|
if($('Form_EditForm_Locale')) ajaxURL += "&locale=" + $('Form_EditForm_Locale').value;
|
||||||
if (this.filter() != null) ajaxURL += "&filter=" + this.filter();
|
// ajaxExpansion is called in context of TreeNode, not Tree, so filter() doesn't exist.
|
||||||
|
if (this.filter && this.filter() != null) ajaxURL += "&filter=" + this.filter();
|
||||||
|
|
||||||
new Ajax.Request(ajaxURL, {
|
new Ajax.Request(ajaxURL, {
|
||||||
onSuccess : this.installSubtree.bind(this),
|
onSuccess : this.installSubtree.bind(this),
|
||||||
|
Loading…
Reference in New Issue
Block a user