Skip to content
Snippets Groups Projects
Commit 9d4f224d authored by izabel's avatar izabel
Browse files

[LMS-1561] Dissapearing custom columns of Predefined Queries

SVN: 16212
parent 6a6b7c44
No related branches found
No related tags found
No related merge requests found
......@@ -100,7 +100,7 @@ public class QueryViewer extends ContentPanel implements IDatabaseModificationOb
}
AsyncCallback<TableModelReference> callback =
ReportGeneratedCallback.create(viewContext.getCommonViewContext(),
createReportInformationProvider(sqlQueryOrNull),
createReportInformationProvider(sqlQueryOrNull, queryIdOrNull),
createDisplayQueryResultsAction());
if (queryIdOrNull != null)
{
......@@ -123,7 +123,8 @@ public class QueryViewer extends ContentPanel implements IDatabaseModificationOb
queryProvider.update(observedModifications);
}
private IReportInformationProvider createReportInformationProvider(final String sqlQuery)
private IReportInformationProvider createReportInformationProvider(final String sqlQuery,
final Long queryIdOrNull)
{
return new IReportInformationProvider()
{
......@@ -135,6 +136,10 @@ public class QueryViewer extends ContentPanel implements IDatabaseModificationOb
public String getKey()
{
if (queryIdOrNull != null)
{
return queryIdOrNull.toString();
}
if (sqlQuery == null)
{
return "null";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment