From a335c02a1ff16decb3036c731a263b1bbe14b4e4 Mon Sep 17 00:00:00 2001 From: felmer <felmer> Date: Tue, 20 Apr 2010 11:15:35 +0000 Subject: [PATCH] revert previous change SVN: 15531 --- .../web/client/application/module/QueryViewer.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/plugin/query/client/web/client/application/module/QueryViewer.java b/openbis/source/java/ch/systemsx/cisd/openbis/plugin/query/client/web/client/application/module/QueryViewer.java index 51fe07ad1d7..6d9d45622e8 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/plugin/query/client/web/client/application/module/QueryViewer.java +++ b/openbis/source/java/ch/systemsx/cisd/openbis/plugin/query/client/web/client/application/module/QueryViewer.java @@ -96,7 +96,7 @@ public class QueryViewer extends ContentPanel implements IDatabaseModificationOb } ReportGeneratedCallback callback = new ReportGeneratedCallback(viewContext.getCommonViewContext(), - createReportInformationProvider(queryIdOrNull, sqlQueryOrNull), + createReportInformationProvider(sqlQueryOrNull), createDisplayQueryResultsAction()); if (queryIdOrNull != null) { @@ -119,8 +119,7 @@ public class QueryViewer extends ContentPanel implements IDatabaseModificationOb queryProvider.update(observedModifications); } - private IReportInformationProvider createReportInformationProvider(final Long queryIdOrNull, - final String sqlQuery) + private IReportInformationProvider createReportInformationProvider(final String sqlQuery) { return new IReportInformationProvider() { @@ -132,9 +131,9 @@ public class QueryViewer extends ContentPanel implements IDatabaseModificationOb public String getKey() { - if (queryIdOrNull != null) + if (sqlQuery == null) { - return Long.toString(queryIdOrNull); + return "null"; } return Integer.toString(sqlQuery.hashCode()); } -- GitLab