From 535b9d924b68a6440b57e7a16eebff6f5e2753f6 Mon Sep 17 00:00:00 2001 From: mka Date: Wed, 16 Oct 2013 13:14:23 +0000 Subject: [PATCH] Correction of the setting uses between of the documents --- Workspace/Siman/src/org/splat/simer/OpenStudy.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Workspace/Siman/src/org/splat/simer/OpenStudy.java b/Workspace/Siman/src/org/splat/simer/OpenStudy.java index 946317d..1f97444 100644 --- a/Workspace/Siman/src/org/splat/simer/OpenStudy.java +++ b/Workspace/Siman/src/org/splat/simer/OpenStudy.java @@ -135,13 +135,17 @@ public class OpenStudy extends AbstractOpenObject implements OpenStudyServices { _credate = datstring.format(_mystudy.getDate()); _lasdate = datstring.format(_mystudy.getLastModificationDate()); _description = _mystudy.getDescription(); - _involving = new ArrayList(1); + //_involving = new ArrayList(1); _context = new ArrayList(); if (_selection.equals("0.1")) { _ustep = getProjectElementService().getFirstStep(_mystudy); } _ustep.setActor(_cuser); - _involving.add(_ustep); + if ((_involving.isEmpty()) || (_involving.get(0).getOwnerStudy().getIndex() + != _ustep.getOwnerStudy().getIndex())) { + _involving.clear(); + _involving.add(_ustep); + } for (Iterator i = _ustep.getAllSimulationContexts() .iterator(); i.hasNext();) { _context.add(new SimulationContextFacade(i.next(), -- 2.30.2