Skip to content
Snippets Groups Projects
Commit 6e09dd91 authored by srosse's avatar srosse
Browse files

OO-3304: prevent opening twice the survey

parent 75d4c240
No related branches found
No related tags found
No related merge requests found
...@@ -62,6 +62,10 @@ public class ExecutionController extends BasicController { ...@@ -62,6 +62,10 @@ public class ExecutionController extends BasicController {
initVelocityContainer(ureq); initVelocityContainer(ureq);
putInitialPanel(mainVC); putInitialPanel(mainVC);
} }
public QualityExecutorParticipation getQualityParticipant() {
return qualityParticipation;
}
protected void initVelocityContainer(UserRequest ureq) { protected void initVelocityContainer(UserRequest ureq) {
back = LinkFactory.createLinkBack(mainVC, this); back = LinkFactory.createLinkBack(mainVC, this);
......
...@@ -199,18 +199,19 @@ public class ExecutorParticipationsListController extends FormBasicController im ...@@ -199,18 +199,19 @@ public class ExecutorParticipationsListController extends FormBasicController im
return; return;
} }
if(executionCtrl == null || !participation.equals(executionCtrl.getQualityParticipant())) {
OLATResourceable ores = OresHelper.createOLATResourceableInstance(ORES_EXECUTION_TYPE, OLATResourceable ores = OresHelper.createOLATResourceableInstance(ORES_EXECUTION_TYPE,
participation.getParticipationRef().getKey()); participation.getParticipationRef().getKey());
WindowControl bwControl = addToHistory(ureq, ores, null); WindowControl bwControl = addToHistory(ureq, ores, null);
executionCtrl = new ExecutionController(ureq, bwControl, participation); executionCtrl = new ExecutionController(ureq, bwControl, participation);
listenTo(executionCtrl); listenTo(executionCtrl);
WindowControl wControl = getWindowControl(); WindowControl wControl = getWindowControl();
ChiefController cc = wControl.getWindowBackOffice().getChiefController(); ChiefController cc = wControl.getWindowBackOffice().getChiefController();
String businessPath = executionCtrl.getWindowControlForDebug().getBusinessControl().getAsString(); String businessPath = executionCtrl.getWindowControlForDebug().getBusinessControl().getAsString();
cc.getScreenMode().setMode(Mode.full, businessPath); cc.getScreenMode().setMode(Mode.full, businessPath);
wControl.pushToMainArea(executionCtrl.getInitialComponent()); wControl.pushToMainArea(executionCtrl.getInitialComponent());
}
} }
@Override @Override
......
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