Skip to content
Snippets Groups Projects
Commit 06ae96e4 authored by gpawel's avatar gpawel
Browse files

LMS-2495 Flexible import/upload: bugfix

SVN: 22957
parent 1704171d
No related branches found
No related tags found
No related merge requests found
......@@ -20,8 +20,6 @@ import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import ch.systemsx.cisd.common.exceptions.UserFailureException;
import ch.systemsx.cisd.common.shared.basic.utils.StringUtils;
import ch.systemsx.cisd.openbis.generic.shared.basic.dto.ListOrSearchSampleCriteria;
import ch.systemsx.cisd.openbis.generic.shared.basic.dto.NewSample;
import ch.systemsx.cisd.openbis.generic.shared.basic.dto.Sample;
......@@ -80,12 +78,6 @@ public class SampleRegisterOrUpdateUtil
{
String newSampleContainerCode = newSampleIdentifier.tryGetContainerCode();
String newSampleContainerSpace = newSample.getDefaultSpaceIdentifier();
if (false == StringUtils.isBlank(newSampleContainerCode)
&& false == StringUtils.isBlank(newSample.getCurrentContainerIdentifier()))
{
throw new UserFailureException("Current container is specified, but the identifier '"
+ newSample.getIdentifier() + "' includes the container code.");
}
if (newSampleContainerCode == null && newSample.getCurrentContainerIdentifier() != null)
{
SampleIdentifier newSampleContainerIdentifier =
......
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