Skip to content
Snippets Groups Projects
Commit d94c0010 authored by Tom Käsler's avatar Tom Käsler
Browse files

When Questions are fetched by SortOrder, it will be checked if the ID in the...

When Questions are fetched by SortOrder, it will be checked if the ID in the SortList really points to a Question
parent 5fd61339
No related merge requests found
...@@ -944,6 +944,9 @@ public class QuestionService implements IQuestionService, ApplicationEventPublis ...@@ -944,6 +944,9 @@ public class QuestionService implements IQuestionService, ApplicationEventPublis
List<String> questionIds = questionSortOrder.getSortOrder(); List<String> questionIds = questionSortOrder.getSortOrder();
for (String t : questionIds) { for (String t : questionIds) {
Question tempQuestion = getQuestion(t); Question tempQuestion = getQuestion(t);
if (tempQuestion == null) {
break;
}
if (onlyActive) { if (onlyActive) {
if (tempQuestion.isActive()) { if (tempQuestion.isActive()) {
questions.add(tempQuestion); questions.add(tempQuestion);
......
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