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

#15391 fix a bug where subject is not saved in sortOrder in getSortOrder - rework4

parent 39c0b5fe
Branches
Tags
No related merge requests found
...@@ -145,7 +145,7 @@ public class QuestionService implements IQuestionService, ApplicationEventPublis ...@@ -145,7 +145,7 @@ public class QuestionService implements IQuestionService, ApplicationEventPublis
SortOrder questionSortOrder = databaseDao.getSortOrder(session.get_id(), question.getQuestionVariant(), question.getSubject()); SortOrder questionSortOrder = databaseDao.getSortOrder(session.get_id(), question.getQuestionVariant(), question.getSubject());
if (questionSortOrder == null) { if (questionSortOrder == null) {
List<String> s = new ArrayList<String>(); List<String> s = new ArrayList<String>();
s.add(question.getSubject()); s.add(question.get_id());
SortOrder newQSortOrder = new SortOrder(); SortOrder newQSortOrder = new SortOrder();
newQSortOrder.setSessionId(question.getSessionId()); newQSortOrder.setSessionId(question.getSessionId());
newQSortOrder.setSubject(question.getSubject()); newQSortOrder.setSubject(question.getSubject());
......
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