Skip to content
Snippets Groups Projects
Commit 79a37597 authored by anttil's avatar anttil
Browse files

BIS-89 / SP-158: Sample Batch Registration can not handle samples from different Spaces

SVN: 28655
parent 09d3562f
No related branches found
No related tags found
No related merge requests found
......@@ -298,7 +298,14 @@ public class SampleUploadSectionsParser
List<String> codes = sampleCodeGenerator.generateCodes(newSamples.size());
for (int i = 0; i < newSamples.size(); i++)
{
newSamples.get(i).setIdentifier(defaultGroupIdentifier + "/" + codes.get(i));
if (newSamples.get(i).getDefaultSpaceIdentifier() == null || newSamples.get(i).getDefaultSpaceIdentifier().isEmpty())
{
newSamples.get(i).setIdentifier(defaultGroupIdentifier + "/" + codes.get(i));
} else
{
newSamples.get(i).setIdentifier(
newSamples.get(i).getDefaultSpaceIdentifier() + "/" + codes.get(i));
}
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment