Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Commit

Permalink
node delte might fail
Browse files Browse the repository at this point in the history
Change-Id: Ifa3694efacc0e0ac71792b0d67999c946b4f4712
  • Loading branch information
corneliusweiss committed Sep 8, 2017
1 parent 8320408 commit 146c5aa
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
1 change: 1 addition & 0 deletions tine20/Filemanager/js/NodeEditDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ Tine.Filemanager.NodeEditDialog = Ext.extend(Tine.widgets.dialog.EditDialog, {
name: 'path',
hideLabel: true,
fieldClass: 'x-ux-displayfield-text',
htmlEncode: true,
columnWidth: 1
}],[
Tine.widgets.form.RecordPickerManager.get('Addressbook', 'Contact', {
Expand Down
10 changes: 3 additions & 7 deletions tine20/Filemanager/js/nodeActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,13 +202,9 @@ Tine.Filemanager.nodeActions.Delete = {
if (nodes && nodes.length) {
for (var i = 0; i < nodes.length; i++) {
var currNodeData = nodes[i].data;

if (typeof currNodeData.name == 'object') {
nodeName += currNodeData.name.name + '<br />';
}
else {
nodeName += currNodeData.name + '<br />';
}
nodeName += Tine.Tinebase.EncodingHelper.encode(typeof currNodeData.name == 'object' ?
currNodeData.name.name :
currNodeData.name) + '<br />';
}
}

Expand Down
7 changes: 5 additions & 2 deletions tine20/Tinebase/js/widgets/container/TreePanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -595,12 +595,15 @@ Ext.extend(Tine.widgets.container.TreePanel, Ext.tree.TreePanel, {
}

Ext.applyIf(attr, {
text: Ext.util.Format.htmlEncode(attr.name),
qtip: Tine.Tinebase.common.doubleEncode(attr.name),
text: attr.name,
qtip: attr.name,
leaf: !!attr.account_grants,
allowDrop: !!attr.account_grants && attr.account_grants.addGrant
});

attr.text = Tine.Tinebase.EncodingHelper.encode(attr.text);
attr.qtip = Tine.Tinebase.EncodingHelper.encode(attr.qtip);

// copy 'real' data to container space
attr.container = Ext.copyTo({}, attr, Tine.Tinebase.Model.Container.getFieldNames());
},
Expand Down

0 comments on commit 146c5aa

Please sign in to comment.