From 026bf0be3aa9f846ba2b013b1cc84a9c2947c1d5 Mon Sep 17 00:00:00 2001 From: buczekp <buczekp> Date: Fri, 6 Aug 2010 12:03:05 +0000 Subject: [PATCH] [LMS-1676] solved FIXME SVN: 17353 --- .../server/business/bo/SampleGenericBusinessRules.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 320ea860897..be9c0f63cb8 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) -- GitLab