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

OO-4461: RS when copy a survey course element with invalid configuration

parent be04a1b3
No related branches found
No related tags found
No related merge requests found
...@@ -248,9 +248,11 @@ public class SurveyCourseNode extends AbstractAccessableCourseNode { ...@@ -248,9 +248,11 @@ public class SurveyCourseNode extends AbstractAccessableCourseNode {
} }
private void postImportCopy(ICourse course, String nodeIdent) { private void postImportCopy(ICourse course, String nodeIdent) {
RepositoryEntry formEntry = getEvaluationForm(getModuleConfiguration());
if (formEntry == null) return;
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());
EvaluationFormSurveyIdentifier surveyIdent = of(ores, nodeIdent); EvaluationFormSurveyIdentifier surveyIdent = of(ores, nodeIdent);
EvaluationFormSurvey survey = evaluationFormManager.loadSurvey(surveyIdent); EvaluationFormSurvey survey = evaluationFormManager.loadSurvey(surveyIdent);
if (survey == null) { if (survey == null) {
......
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