Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ARSnova Backend
Manage
Activity
Members
Labels
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Privacy
Imprint
Contact
Snippets
Groups
Projects
Show more breadcrumbs
Paul-Christian Volkmer
ARSnova Backend
Commits
a7ee4759
Commit
a7ee4759
authored
10 years ago
by
Tom Käsler
Browse files
Options
Downloads
Patches
Plain Diff
#15391 fix REST API to expect a true/false string in isPreparation
parent
9801e4e6
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/de/thm/arsnova/services/IQuestionService.java
+1
-1
1 addition, 1 deletion
src/main/java/de/thm/arsnova/services/IQuestionService.java
src/main/java/de/thm/arsnova/services/QuestionService.java
+5
-1
5 additions, 1 deletion
src/main/java/de/thm/arsnova/services/QuestionService.java
with
6 additions
and
2 deletions
src/main/java/de/thm/arsnova/services/IQuestionService.java
+
1
−
1
View file @
a7ee4759
...
...
@@ -140,7 +140,7 @@ public interface IQuestionService {
String
getSubjectSortType
(
String
sessionkey
,
String
isPreparation
);
SortOrder
setSort
(
String
sessionkey
,
String
subject
,
String
sortType
,
String
questionVariant
,
String
[]
sortOrder
);
SortOrder
setSort
(
String
sessionkey
,
String
subject
,
String
sortType
,
String
isPreparation
,
String
[]
sortOrder
);
String
getQuestionSortType
(
String
sessionkey
,
String
isPreparation
,
String
subject
);
}
This diff is collapsed.
Click to expand it.
src/main/java/de/thm/arsnova/services/QuestionService.java
+
5
−
1
View file @
a7ee4759
...
...
@@ -794,8 +794,12 @@ public class QuestionService implements IQuestionService, ApplicationEventPublis
}
@Override
public
SortOrder
setSort
(
String
sessionkey
,
String
subject
,
String
sortType
,
String
questionVariant
,
String
[]
sortOrderList
)
{
public
SortOrder
setSort
(
String
sessionkey
,
String
subject
,
String
sortType
,
String
isPreparation
,
String
[]
sortOrderList
)
{
Session
session
=
databaseDao
.
getSessionFromKeyword
(
sessionkey
);
String
questionVariant
=
"preparation"
;
if
(
"false"
.
equals
(
isPreparation
))
{
questionVariant
=
"lecture"
;
}
SortOrder
existing
=
databaseDao
.
getSortOrder
(
session
.
get_id
(),
questionVariant
,
subject
);
SortOrder
sortOrder
=
new
SortOrder
();
if
(
existing
!=
null
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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