From a69df51eaac054026ba2f27903797d2863fa7461 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Thu, 1 Aug 2013 09:54:32 +0000 Subject: [PATCH] as insertObject (called by treeObj.addObject) expects id to be either string or object, we cast the option.id in case its a number --- 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 dad01705ea..0b8ca48ce4 100644 --- a/etemplate/js/et2_widget_tree.js +++ b/etemplate/js/et2_widget_tree.js @@ -345,7 +345,7 @@ var et2_tree = et2_inputWidget.extend( var apply_actions = function(treeObj, option) { // Add a new action object to the object manager - var obj = treeObj.addObject(option.id, new dhtmlxtreeItemAOI(this.input, option.id)); + var obj = treeObj.addObject((typeof option.id == 'number'?String(option.id):option.id), new dhtmlxtreeItemAOI(this.input, option.id)); obj.updateActionLinks(action_links); if(option.item && option.item.length > 0)