_credate = datstring.format(_mystudy.getDate());
_lasdate = datstring.format(_mystudy.getLastModificationDate());
_description = _mystudy.getDescription();
- _involving = new ArrayList<Step>(1);
+ //_involving = new ArrayList<Step>(1);
_context = new ArrayList<SimulationContextFacade>();
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<SimulationContext> i = _ustep.getAllSimulationContexts()
.iterator(); i.hasNext();) {
_context.add(new SimulationContextFacade(i.next(),