fixed uploading from grid

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@71704 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2013-03-25 14:31:28 +00:00
parent 95a8de8def
commit 110557f426
1 changed files with 3 additions and 2 deletions

View File

@ -682,7 +682,8 @@ public class AppControllerExplorer implements EventHandler, TreeAppControllerInt
FileModel folder = fileUploadEvent.getParentFileModel(); FileModel folder = fileUploadEvent.getParentFileModel();
if(folder == null) if(folder == null)
folder = getSelectedFolderInTree(); folder = explorerPanel.getAsycTreePanel().getRootItem();
// folder = getSelectedFolderInTree();
if(fileUploadEvent.getUploadTypeToString().equals(UploadType.ARCHIVE.toString())) if(fileUploadEvent.getUploadTypeToString().equals(UploadType.ARCHIVE.toString()))
new DialogUpload(ConstantsExplorer.ARCHIVEUPLOADHEADER, folder.getName(), folder, ConstantsExplorer.ARCHIVE); new DialogUpload(ConstantsExplorer.ARCHIVEUPLOADHEADER, folder.getName(), folder, ConstantsExplorer.ARCHIVE);