diff --git a/src/main/java/org/gcube/portlets/user/td/client/TabularDataController.java b/src/main/java/org/gcube/portlets/user/td/client/TabularDataController.java index 4813ffa..ba356be 100644 --- a/src/main/java/org/gcube/portlets/user/td/client/TabularDataController.java +++ b/src/main/java/org/gcube/portlets/user/td/client/TabularDataController.java @@ -334,7 +334,9 @@ public class TabularDataController { eventBus.fireEvent(uiStateEvent); break; case TR_CLOSE: - eventBus.fireEvent(new UIStateEvent(UIStateType.TR_CLOSE)); + uiStateEvent = new UIStateEvent(UIStateType.TR_CLOSE); + uiStateEvent.setTrId(trId); + eventBus.fireEvent(uiStateEvent); break; case TR_OPEN: uiStateEvent = new UIStateEvent(UIStateType.TR_OPEN); @@ -409,6 +411,8 @@ public class TabularDataController { case WIZARD_OPEN: Log.debug("CloseTabularResource"); tabularData.closeTable(); + UIStateEvent uiStateEvent = new UIStateEvent(UIStateType.TR_CLOSE); + uiStateEvent.setTrId(trId); trId = null; tableOpening = null; uiState = UIStateType.TR_CLOSE;