Skip to content

Commit 65b224e

Browse files
committed
Merge discvr-23.3 to discvr-23.7
2 parents 010fd28 + b38a15e commit 65b224e

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

LDK/resources/schemas/dbscripts/sqlserver/Naturalize_install_1.0.1.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ GO
8888
-- Create (or replace) a simple function that returns the version number of the newly installed assembly
8989
IF EXISTS (SELECT *
9090
FROM sys.objects
91-
WHERE object_id = OBJECT_ID(N' ldk.NaturalizeVersion')
91+
WHERE object_id = OBJECT_ID(N'ldk.NaturalizeVersion')
9292
AND type = N'FN')
9393
DROP FUNCTION ldk.NaturalizeVersion;
9494
GO

LDK/src/org/labkey/ldk/query/BuiltInColumnsCustomizer.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ public void customize(TableInfo table)
3939
}
4040
}
4141

42+
if (table.isLocked())
43+
{
44+
_log.debug("BuildInColumnsCustomizer called on a locked table: " + table.getPublicSchemaName() + " / " + table.getName(), new Exception());
45+
return;
46+
}
47+
4248
table.setDefaultVisibleColumns(null);
4349
}
4450

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)