Commit 8f94093e authored by Liana.Bakradze's avatar Liana.Bakradze
Browse files

fix migration for tasks with subtasks

parent 12cebd20
Branches unavailable Tags unavailable
No related merge requests found
Showing with 7 additions and 1 deletion
+7 -1
......@@ -327,7 +327,13 @@ public class StudySerializationUtils {
for (VirtualFile file : taskDescriptionFiles) {
try {
String text = VfsUtilCore.loadText(file);
taskTextsMap.put(FileUtil.getNameWithoutExtension(file.getName()), text);
String key = FileUtil.getNameWithoutExtension(file.getName());
if (key.equals(EduNames.TASK) && taskDescriptionFiles.size() > 1) {
taskTextsMap.put(EduNames.TASK + EduNames.SUBTASK_MARKER + 0, text);
}
else {
taskTextsMap.put(key, text);
}
}
catch (IOException e) {
LOG.error(e);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment