Minor Updated

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@92549 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-03-03 12:05:11 +00:00
parent b1360e458e
commit bdf65644cc
1 changed files with 5 additions and 1 deletions

View File

@ -870,9 +870,12 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
}
} else {
logger.debug("Old Filter:" + filter);
logger.debug("New Filter: " + plc.getFilter());
if (plc.getFilter() == null || plc.getFilter().isEmpty()) {
SessionUtil.setCodelistsPagingLoadedFilter(session,plc.getFilter());
return ltr;
} else {
if (filter.compareTo(plc.getFilter()) == 0) {
@ -880,6 +883,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
.getCodelistsPagingLoadedFilteredCopy(session);
return ltrFilteredCopy;
} else {
SessionUtil.setCodelistsPagingLoadedFilter(session,plc.getFilter());
for (TabResource tr : ltr) {
if (tr.getName().contains(plc.getFilter())) {
ltrCopy.add(tr);
@ -899,7 +903,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
return ltrCopy;
}
}
}
}