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:
Ingo Schommer 2010-04-12 01:43:49 +00:00
parent 5c6f3d59d7
commit 07aae82ac7

View File

@ -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),