Skip to content

Commit 4bcf876

Browse files
committed
Dont include report nav items in summary
1 parent 388a785 commit 4bcf876

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

laboratory/src/org/labkey/laboratory/ExtraDataSourcesDataProvider.java

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -189,12 +189,16 @@ public List<SummaryNavItem> getSummary(Container c, User u)
189189
Set<AdditionalDataSource> sources = service.getAdditionalDataSources(c, u);
190190
for (AdditionalDataSource source : sources)
191191
{
192-
TableInfo ti = source.getTableInfo(c, u);
193-
if (ti != null)
192+
if (source.getItemType() == LaboratoryService.NavItemCategory.data || source.getItemType() == LaboratoryService.NavItemCategory.samples)
194193
{
195-
assert ti.getPublicSchemaName() != null;
196-
assert ti.getPublicName() != null;
197-
items.add(new QueryCountNavItem(this, ti.getPublicSchemaName(), ti.getPublicName(), source.getItemType(), source.getReportCategory(), source.getLabel()));
194+
TableInfo ti = source.getTableInfo(c, u);
195+
if (ti != null)
196+
{
197+
assert ti.getPublicSchemaName() != null;
198+
assert ti.getPublicName() != null;
199+
200+
items.add(new QueryCountNavItem(this, ti.getPublicSchemaName(), ti.getPublicName(), source.getItemType(), source.getReportCategory(), source.getLabel()));
201+
}
198202
}
199203
}
200204

0 commit comments

Comments
 (0)