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()
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@96705 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
6883c8e3c6
commit
bf12972813
@ -229,7 +229,8 @@ TreeDropdownField.prototype = {
|
||||
var ajaxURL = this.options.dropdownField.helperURLBase() + 'tree/' + this.getIdx();
|
||||
ajaxURL += $('SecurityID') ? '&SecurityID=' + $('SecurityID').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, {
|
||||
onSuccess : this.installSubtree.bind(this),
|
||||
|
Loading…
Reference in New Issue
Block a user