diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/generic/server/business/bo/SampleGenericBusinessRules.java b/openbis/source/java/ch/systemsx/cisd/openbis/generic/server/business/bo/SampleGenericBusinessRules.java index 320ea8608978cb2b1ff0d21b9e0170152c7dddfe..be9c0f63cb80e4d1d25a35aad56c1cfbb24ff3da 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/generic/server/business/bo/SampleGenericBusinessRules.java +++ b/openbis/source/java/ch/systemsx/cisd/openbis/generic/server/business/bo/SampleGenericBusinessRules.java @@ -85,8 +85,10 @@ public class SampleGenericBusinessRules if (sample == null) return; assertValidParentRelation(sample.getContainer(), sample, "contained in"); - // FIXME 2010-08-05, Piotr Buczek: use parents - not generatedFrom - assertValidParentRelation(sample.getGeneratedFrom(), sample, "child of"); + for (SamplePE parent : sample.getParents()) + { + assertValidParentRelation(parent, sample, "child of"); + } } static public void assertValidChildren(SamplePE sample)