Skip to content

Commit

Permalink
Issue 52355: Assure we always have non-blank rows for dat provided fo…
Browse files Browse the repository at this point in the history
…r cross-type import (#6364)
  • Loading branch information
labkey-susanh authored Feb 24, 2025
1 parent 520f04b commit e665a39
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion experiment/src/org/labkey/experiment/ExpDataIterators.java
Original file line number Diff line number Diff line change
Expand Up @@ -3019,7 +3019,12 @@ private TypeData createSampleHeaderRow(ExpSampleTypeImpl sampleType, Container c
ColumnInfo colInfo = getColumnInfo(i);
String name = colInfo.getName();
String lcName = name.toLowerCase();
if (validFields.contains(name))
if (_typeColIndex != null && _typeColIndex == i) // Issue 52355: assure we have some data in the row by including the type
{
fieldIndexes.add(i);
header.add(_typeColName);
}
else if (validFields.contains(name))
{
fieldIndexes.add(i);
header.add(_tsvWriter.quoteValue(name));
Expand Down

0 comments on commit e665a39

Please sign in to comment.