Skip to content

Commit e80b974

Browse files
committed
Issue 1035: Add terminal storage location name column to sample grids
1 parent 9d910c7 commit e80b974

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

api/src/org/labkey/api/inventory/InventoryService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ enum InventoryStatusColumn
5252
StorageColSort,
5353
StorageComment,
5454
StorageLocation,
55+
StorageTerminalLocation,
5556
StorageRow,
5657
StorageRowSort,
5758
StoragePositionNumber,

experiment/src/org/labkey/experiment/api/ExpMaterialTableImpl.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,10 @@ protected void populateColumns()
875875
addColumn(RawAliquotUnit).getRenderer().addQueryFieldKeys(new HashSet<>(Set.of(AliquotUnit.fieldKey())));
876876

877877
if (InventoryService.get() != null && (st == null || !st.isMedia()))
878-
defaultCols.addAll(InventoryService.get().addInventoryStatusColumns(st == null ? null : st.getMetricUnit(), this, getContainer(), _userSchema.getUser()));
878+
{
879+
List<FieldKey> inventoryCols = InventoryService.get().addInventoryStatusColumns(st == null ? null : st.getMetricUnit(), this, getContainer(), _userSchema.getUser());
880+
defaultCols.addAll(inventoryCols.stream().filter(fk -> !fk.equals(InventoryService.InventoryStatusColumn.StorageTerminalLocation.fieldKey())).toList());
881+
}
879882

880883
SQLFragment sql;
881884
UserSchema plateUserSchema;

0 commit comments

Comments
 (0)