From adacf33bd6491f8e9a3c01d679de371cc1ad8ee2 Mon Sep 17 00:00:00 2001
From: uhensler <urs.hensler@frentix.com>
Date: Fri, 29 Nov 2019 16:59:05 +0100
Subject: [PATCH] OO-4207: Type of migrated learning path course is not saved

---
 .../course/learningpath/manager/LearningPathServiceImpl.java     | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/main/java/org/olat/course/learningpath/manager/LearningPathServiceImpl.java b/src/main/java/org/olat/course/learningpath/manager/LearningPathServiceImpl.java
index 2a7466f09f0..3572e1437e2 100644
--- a/src/main/java/org/olat/course/learningpath/manager/LearningPathServiceImpl.java
+++ b/src/main/java/org/olat/course/learningpath/manager/LearningPathServiceImpl.java
@@ -72,6 +72,7 @@ public class LearningPathServiceImpl implements LearningPathService {
 		course = CourseFactory.openCourseEditSession(course.getResourceableId());
 		
 		course.getCourseConfig().setNodeAccessType(LearningPathNodeAccessProvider.TYPE);
+		CourseFactory.setCourseConfig(course.getResourceableId(), course.getCourseConfig());
 		
 		TreeVisitor tv = new TreeVisitor(new PostMigrationVisitor(registry), course.getEditorTreeModel().getRootNode(), true);
 		tv.visitAll();
-- 
GitLab