Skip to content

Commit 0898a1d

Browse files
authored
Merge pull request #12 from bimberlabinternal/fb_merge_discvr-20.11
Merge discvr-20.11 to discvr-21.3
2 parents 10f6ef8 + cf2d033 commit 0898a1d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

laboratory/api-src/org/labkey/api/laboratory/QueryImportNavItem.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ public QueryImportNavItem(DataProvider provider, String schema, String query, La
4848
public QueryImportNavItem(DataProvider provider, String schema, String query, String label, LaboratoryService.NavItemCategory itemType, String reportCategory, QueryCache cache)
4949
{
5050
this(provider, null, schema, query, itemType, label, reportCategory);
51-
_queryCache = cache == null ? new QueryCache() : cache;
51+
if (cache != null)
52+
_queryCache = cache;
5253
}
5354

5455
public QueryImportNavItem(DataProvider provider, Container targetContainer, String schema, String query, LaboratoryService.NavItemCategory itemType, String label, String reportCategory)

laboratory/api-src/org/labkey/api/laboratory/QueryTabbedReportItem.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ public class QueryTabbedReportItem extends TabbedReportItem
3434
public QueryTabbedReportItem(QueryCache cache, DataProvider provider, String schemaName, String queryName, String label, String reportCategory)
3535
{
3636
super(provider, queryName, label, reportCategory);
37-
_queryCache = cache;
37+
if (cache != null)
38+
_queryCache = cache;
3839
_schemaName = schemaName;
3940
_queryName = queryName;
4041
}

0 commit comments

Comments
 (0)