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:
Luke Hudson 2010-01-12 21:29:15 +00:00 committed by Sam Minnee
parent 6883c8e3c6
commit bf12972813

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