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

Commit

Permalink
fix(Filemanager/js): improve node path setting when create folder
Browse files Browse the repository at this point in the history
  • Loading branch information
ccheng-dev committed Sep 6, 2021
1 parent 2d4ee90 commit 38afbf2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions tine20/Filemanager/js/nodeActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,7 @@ Tine.Filemanager.nodeActions.CreateFolder = {
addGrant: true,
editGrant: true,
deleteGrant: true
},
path: `${currentPath}`
}
}));

gridWdgt.newInlineRecord(newRecord, 'name', async (localRecord) => {
Expand Down Expand Up @@ -384,7 +383,6 @@ Tine.Filemanager.nodeActions.Delete = {
data: record.data
});
});

await Tine.Filemanager.deleteNodes(_.map(nodes, 'data.path'));
} catch (e) {
Tine.Tinebase.ExceptionHandler.handleRequestException(e.data);
Expand Down
2 changes: 0 additions & 2 deletions tine20/Tinebase/js/widgets/grid/GridPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -1181,8 +1181,6 @@ Ext.extend(Tine.widgets.grid.GridPanel, Ext.Panel, {
ed.un('canceledit', onCancelEdit);

this.pagingToolbar.refresh.disable();
localRecord.data.path = `${localRecord.get('path')}${localRecord.get('name')}/`;

this.store.remove(localRecord);
this.store.addSorted(localRecord);
this.grid.getSelectionModel().selectRow(this.store.indexOf(localRecord));
Expand Down

0 comments on commit 38afbf2

Please sign in to comment.