Bug fixed on: New Folder

Bug fixed on breadcrumb when item is null

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/widgets/workspace-explorer@131573 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2016-09-21 14:02:03 +00:00
parent f25756fe44
commit 518a13c028
3 changed files with 17 additions and 3 deletions

View File

@ -1,4 +1,9 @@
<ReleaseNotes>
<Changeset component="portlets-widgets.workspace-explorer.1-5-0"
date="2016-09-21">
<Change>[Feature #5091] Added load for folder ID to SelectDialog and SelectPanel</Change>
<Change>Bug fixed on breadcrumb when item is null</Change>
</Changeset>
<Changeset component="portlets-widgets.workspace-explorer.1-4-0"
date="2016-05-31">
<Change>[Feature #4128] Migration to Liferay 6.2</Change>
@ -6,7 +11,8 @@
<Changeset component="portlets-widgets.workspace-explorer.1-3-0"
date="2016-05-04">
<Change>[Feature #2546] Endow Workspace Resources Explorer with
filtering and display features</Change>
filtering and display features
</Change>
</Changeset>
<Changeset component="portlets-widgets.workspace-explorer.1-2-1"
date="2016-03-22">

View File

@ -124,6 +124,12 @@ public class WorkspaceExplorerController implements EventHandler {
try {
wsExplorer.loadFolder(item, false);
loadParentBreadcrumbByItemId(item.getId(), true);
if(item.isSpecialFolder())
navigation.setVisibleNewFolderFacility(false);
else
navigation.setVisibleNewFolderFacility(true);
clearMoreInfo();
} catch (Exception e) {
GWT.log(e.getMessage());

View File

@ -87,8 +87,10 @@ public class Breadcrumbs extends Composite {
if (parents != null && parents.size() > 0) {
for (Item parent : parents) {
GWT.log("parent is: "+parent);
addNavigationLink(parent);
hashListItems.put(parent.getId(), parent);
if(parent!=null){
addNavigationLink(parent);
hashListItems.put(parent.getId(), parent);
}
}
lastParent = parents.get(parents.size() - 1);
}