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