Skip to content
Snippets Groups Projects
Commit f2bd7cd0 authored by felmer's avatar felmer
Browse files

SE-217 bug fixed

SVN: 15048
parent 8e2515d9
No related branches found
No related tags found
No related merge requests found
......@@ -34,8 +34,8 @@ import ch.systemsx.cisd.openbis.generic.shared.dto.Session;
*/
class SampleProvider implements ISampleProvider
{
private final IBusinessObjectFactory boFactory;
private final Session session;
private final IBusinessObjectFactory boFactory;
private Map<String, Sample> samplesByPermIDs;
......@@ -55,7 +55,10 @@ class SampleProvider implements ISampleProvider
samplesByPermIDs = new HashMap<String, Sample>();
for (Sample sample : list)
{
samplesByPermIDs.put(sample.getPermId(), sample);
for (Sample s = sample; s != null; s = s.getGeneratedFrom())
{
samplesByPermIDs.put(s.getPermId(), s);
}
}
}
......
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