Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OLAT CI-CD Testing Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lars Oliver Dam
OLAT CI-CD Testing Project
Commits
b50e10d7
Commit
b50e10d7
authored
5 years ago
by
uhensler
Browse files
Options
Downloads
Patches
Plain Diff
OO-4461: RS when copy a survey course element with invalid configuration
parent
be04a1b3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/org/olat/course/nodes/SurveyCourseNode.java
+3
-1
3 additions, 1 deletion
src/main/java/org/olat/course/nodes/SurveyCourseNode.java
with
3 additions
and
1 deletion
src/main/java/org/olat/course/nodes/SurveyCourseNode.java
+
3
−
1
View file @
b50e10d7
...
@@ -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
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment