From ffbd526bbbadfab3e80467912f0fe0b67abbd09d Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Fri, 24 Oct 2008 02:05:54 +0000 Subject: [PATCH] BUGFIX Fixed non-object or not null error in TreeSelectorField git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@64736 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- javascript/TreeSelectorField.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/TreeSelectorField.js b/javascript/TreeSelectorField.js index dce02f6f8..3dd28aa50 100755 --- a/javascript/TreeSelectorField.js +++ b/javascript/TreeSelectorField.js @@ -99,7 +99,7 @@ TreeDropdownField.prototype = { } // This iframe stretching doesn't work with the greybox - if(this.iframeObj.id == 'GB_frame') return; + if(this.iframeObj && this.iframeObj.id == 'GB_frame') return; var desiredHeight = Position.cumulativeOffset(this.itemTree)[1] + this.itemTree.offsetHeight + 2; if(this.iframeObj && desiredHeight > this.iframeObj.offsetHeight) {