Skip to content

Commit 646c8bd

Browse files
committed
Back out change to WrappedColumn in favor of ExprColumn
1 parent 865087f commit 646c8bd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

LDK/test/src/org/labkey/test/tests/external/labModules/LabModulesTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1415,6 +1415,7 @@ private void samplesTableTest() throws Exception
14151415
columnLabels.add(getColumnLabel(srr, name));
14161416
}
14171417

1418+
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
14181419
List<List<String>> rows = new ArrayList<>();
14191420
for (Map<String, Object> row : srr.getRows())
14201421
{
@@ -1425,7 +1426,7 @@ private void samplesTableTest() throws Exception
14251426
String val = row.get(name) == null ? "" : String.valueOf(row.get(name));
14261427
if (name.toLowerCase().contains("date"))
14271428
{
1428-
val = StringUtils.isEmpty(val) ? "" : ExcelHelper.getDateTimeFormat().format(new Date(val));
1429+
val = StringUtils.isEmpty(val) ? "" : dateFormat.format(val);
14291430
}
14301431

14311432
target.add(val);

laboratory/src/org/labkey/laboratory/query/LaboratoryTableCustomizer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public void customizeColumns(AbstractTableInfo ti)
184184
{
185185
container.setHidden(true);
186186

187-
BaseColumnInfo wrappedContainer = WrappedColumnInfo.wrapAsCopy(ti, FieldKey.fromString("workbook"), container, "Workbook", null);
187+
ExprColumn wrappedContainer = new ExprColumn(ti, FieldKey.fromString("workbook"), container.getValueSql(ExprColumn.STR_TABLE_ALIAS), JdbcType.GUID, container);
188188
wrappedContainer.setName("workbook");
189189
wrappedContainer.setCalculated(true);
190190
wrappedContainer.setShownInInsertView(false);

0 commit comments

Comments
 (0)