Skip to content

Commit bbbcc7c

Browse files
Fix for multi choice sample finder (#2913)
#### Rationale delete this import static org.labkey.test.util.samplemanagement.SMTestUtils.COL_SAMPLE_ID_NAME; import static org.labkey.test.util.samplemanagement.SMTestUtils.COL_SAMPLE_NAME_NAME; #### Related Pull Requests - <!-- list of links to related pull requests (replace this comment) --> #### Changes - <!-- list of descriptions of changes that are worth noting (replace this comment) --> --------- Co-authored-by: Trey Chadick <tchad@labkey.com>
1 parent 3c447fe commit bbbcc7c

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/org/labkey/test/util/data/TestArrayDataUtils.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,14 @@
1313
import java.util.Map;
1414
import java.util.stream.Collectors;
1515

16-
import static org.labkey.test.util.samplemanagement.SMTestUtils.COL_SAMPLE_ID_NAME;
17-
import static org.labkey.test.util.samplemanagement.SMTestUtils.COL_SAMPLE_NAME_NAME;
18-
1916
public class TestArrayDataUtils
2017
{
2118

2219
public static <T> Map<String, T> getMapWithIdAndMultiChoiceField(List<Map<String, T>> data)
2320
{
2421
return data.stream()
2522
.collect(Collectors.toMap(
26-
row -> String.valueOf(row.get(COL_SAMPLE_NAME_NAME) != null ? row.get(COL_SAMPLE_NAME_NAME) : row.get(COL_SAMPLE_ID_NAME)),
23+
row -> String.valueOf(row.get("Name") != null ? row.get("Name") : row.get("SampleID")),
2724
row ->
2825
{
2926
String complexKey = row.keySet().stream()

0 commit comments

Comments
 (0)