diff --git a/src/main/java/org/gcube/portlets/widgets/ckandatapublisherwidget/client/ui/TwinColumnSelection/TwinColumnSelectionMainPanel.java b/src/main/java/org/gcube/portlets/widgets/ckandatapublisherwidget/client/ui/TwinColumnSelection/TwinColumnSelectionMainPanel.java index 184c03d..43ee298 100644 --- a/src/main/java/org/gcube/portlets/widgets/ckandatapublisherwidget/client/ui/TwinColumnSelection/TwinColumnSelectionMainPanel.java +++ b/src/main/java/org/gcube/portlets/widgets/ckandatapublisherwidget/client/ui/TwinColumnSelection/TwinColumnSelectionMainPanel.java @@ -448,16 +448,16 @@ public class TwinColumnSelectionMainPanel extends Composite{ */ public List getResourcesToPublish(){ List current = dataProviderRight.getList(); - List toReturn = new ArrayList(); for (ResourceElementBean resourceElementBean : current) { - resourceElementBean.setName(resourceElementBean.getFullPath()); - ResourceElementBean beanWithoutChildren = new ResourceElementBean(resourceElementBean); - toReturn.add(beanWithoutChildren); + if(resourceElementBean.isToBeAdded()){ // be sure ... + resourceElementBean.setName(resourceElementBean.getFullPath()); + ResourceElementBean beanWithoutChildren = new ResourceElementBean(resourceElementBean); + toReturn.add(beanWithoutChildren); + } } - GWT.log("List " + toReturn); return toReturn; }