mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-08 23:19:04 +01:00
as insertObject (called by treeObj.addObject) expects id to be either string or object, we cast the option.id in case its a number
This commit is contained in:
parent
3afd9aaa18
commit
a69df51eaa
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user