From 85a198d9e6577f67064be70722ea32ac5206f1b6 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 13 May 2013 11:59:09 +0000 Subject: [PATCH] fixed id check, causig it not to use options given for id=0 --- etemplate/js/et2_widget_tree.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/js/et2_widget_tree.js b/etemplate/js/et2_widget_tree.js index 6a407597a2..6ff8c9fffb 100644 --- a/etemplate/js/et2_widget_tree.js +++ b/etemplate/js/et2_widget_tree.js @@ -268,7 +268,7 @@ var et2_tree = et2_inputWidget.extend( options = data; } // if no options given, but autoloading url, use that to load initial nodes - if (!options.id && this.input.XMLsource) + if (typeof options.id == 'undefined' && this.input.XMLsource) this.input.loadJSON(this.input.XMLsource); else this.input.loadJSONObject(options);