Skip to content
Snippets Groups Projects
Commit c05478e3 authored by cramakri's avatar cramakri
Browse files

LMS-2781 Made minor change that should ensure that the experiment specified by...

LMS-2781 Made minor change that should ensure that the experiment specified by a client is available to the dropbox script

SVN: 24404
parent 782b6f9b
No related branches found
No related tags found
No related merge requests found
...@@ -266,28 +266,23 @@ abstract class AbstractTransactionState<T extends DataSetInformation> ...@@ -266,28 +266,23 @@ abstract class AbstractTransactionState<T extends DataSetInformation>
{ {
dataSet.setSample(new SampleImmutable(sample)); dataSet.setSample(new SampleImmutable(sample));
} }
if (dataSet.getExperiment() != null)
ExperimentIdentifier experimentId =
registrationDetails.getDataSetInformation().getExperimentIdentifier();
if (null != experimentId)
{ {
ExperimentIdentifier experimentId = IExperimentImmutable exp = tryFindExperimentToRegister(experimentId);
registrationDetails.getDataSetInformation().getExperimentIdentifier(); if (exp == null)
if (null != experimentId)
{ {
IExperimentImmutable exp = tryFindExperimentToRegister(experimentId); exp = parent.getExperiment(experimentId.toString());
if (exp == null)
{
exp = parent.getExperiment(experimentId.toString());
}
dataSet.setExperiment(exp);
} }
dataSet.setExperiment(exp);
} }
if (dataSet.getExperiment() != null) ch.systemsx.cisd.openbis.generic.shared.basic.dto.Experiment experiment =
registrationDetails.getDataSetInformation().tryToGetExperiment();
if (null != experiment)
{ {
ch.systemsx.cisd.openbis.generic.shared.basic.dto.Experiment experiment = dataSet.setExperiment(new ExperimentImmutable(experiment));
registrationDetails.getDataSetInformation().tryToGetExperiment();
if (null != experiment)
{
dataSet.setExperiment(new ExperimentImmutable(experiment));
}
} }
List<String> parents = List<String> parents =
......
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