Skip to content
Snippets Groups Projects
Commit af3792e3 authored by uhensler's avatar uhensler
Browse files

OO-4376: Create survey in database after survey course node was copied

parent 440851b2
No related branches found
No related tags found
No related merge requests found
...@@ -251,7 +251,7 @@ public class SurveyCourseNode extends AbstractAccessableCourseNode { ...@@ -251,7 +251,7 @@ public class SurveyCourseNode extends AbstractAccessableCourseNode {
RepositoryEntry ores = RepositoryManager.getInstance().lookupRepositoryEntry(course, true); RepositoryEntry ores = RepositoryManager.getInstance().lookupRepositoryEntry(course, true);
EvaluationFormManager evaluationFormManager = CoreSpringFactory.getImpl(EvaluationFormManager.class); EvaluationFormManager evaluationFormManager = CoreSpringFactory.getImpl(EvaluationFormManager.class);
RepositoryEntry formEntry = getEvaluationForm(getModuleConfiguration()); RepositoryEntry formEntry = getEvaluationForm(getModuleConfiguration());
EvaluationFormSurveyIdentifier surveyIdent = of(ores, getIdent()); EvaluationFormSurveyIdentifier surveyIdent = of(ores, nodeIdent);
EvaluationFormSurvey survey = evaluationFormManager.loadSurvey(surveyIdent); EvaluationFormSurvey survey = evaluationFormManager.loadSurvey(surveyIdent);
if (survey == null) { if (survey == null) {
survey = evaluationFormManager.createSurvey(surveyIdent, formEntry); survey = evaluationFormManager.createSurvey(surveyIdent, formEntry);
......
...@@ -45,7 +45,6 @@ import org.olat.course.assessment.AssessmentManager; ...@@ -45,7 +45,6 @@ import org.olat.course.assessment.AssessmentManager;
import org.olat.course.nodes.SurveyCourseNode; import org.olat.course.nodes.SurveyCourseNode;
import org.olat.course.run.userview.UserCourseEnvironment; import org.olat.course.run.userview.UserCourseEnvironment;
import org.olat.modules.assessment.Role; import org.olat.modules.assessment.Role;
import org.olat.modules.card2brain.manager.Card2BrainManagerImpl;
import org.olat.modules.forms.EvaluationFormManager; import org.olat.modules.forms.EvaluationFormManager;
import org.olat.modules.forms.EvaluationFormParticipation; import org.olat.modules.forms.EvaluationFormParticipation;
import org.olat.modules.forms.EvaluationFormParticipationIdentifier; import org.olat.modules.forms.EvaluationFormParticipationIdentifier;
...@@ -62,7 +61,7 @@ import org.springframework.beans.factory.annotation.Autowired; ...@@ -62,7 +61,7 @@ import org.springframework.beans.factory.annotation.Autowired;
*/ */
public class SurveyRunController extends BasicController { public class SurveyRunController extends BasicController {
private static final Logger log = Tracing.createLoggerFor(Card2BrainManagerImpl.class); private static final Logger log = Tracing.createLoggerFor(SurveyRunController.class);
private VelocityContainer mainVC; private VelocityContainer mainVC;
private Link resetLink; private Link resetLink;
......
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