Fixed error on clone
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@111409 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
9e1809883a
commit
088db38f39
|
@ -508,6 +508,7 @@ public class SessionUtil {
|
|||
if (openList == null || openList.isEmpty()) {
|
||||
logger.info("No open tr in session");
|
||||
} else {
|
||||
logger.debug("Current Tabular Open In session: "+aslSession.getScope()+", trList: "+openList);
|
||||
for (TabResource tabResource : openList) {
|
||||
if (tabResource != null
|
||||
&& tabResource.getTrId() != null
|
||||
|
|
|
@ -610,10 +610,10 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
|||
SessionUtil.setTRId(session, tabResource.getTrId());
|
||||
logger.debug("New Active: " + tabResource.getTrId());
|
||||
} else {
|
||||
logger.error("Set Active Tabular Resource failed, no valid id!: "
|
||||
logger.error("Set Active Tabular Resource failed, no valid id: "
|
||||
+ activeTRId);
|
||||
throw new TDGWTServiceException(
|
||||
"Set Active Tabular Resource failed, no valid id!");
|
||||
"Set Active Tabular Resource failed, no valid id: ");
|
||||
}
|
||||
return tabResource.getTrId();
|
||||
|
||||
|
|
|
@ -318,7 +318,12 @@ public class OperationMonitorCreator {
|
|||
SessionUtil.setTRId(session, trId);
|
||||
SessionUtil.addToCurrentTabularResourcesOpen(session,tabResource);
|
||||
break;
|
||||
|
||||
case Clone:
|
||||
trId = new TRId();
|
||||
trId.setId(taskWrapper.getTrId().getId());
|
||||
trId = retrieveTabularResourceBasicData(trId);
|
||||
operationMonitor.setTrId(trId);
|
||||
break;
|
||||
default:
|
||||
trId = new TRId();
|
||||
trId.setId(taskWrapper.getTrId().getId());
|
||||
|
|
Loading…
Reference in New Issue