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
4b6a9f54
Commit
4b6a9f54
authored
9 years ago
by
Christoph Thelen
Browse files
Options
Downloads
Patches
Plain Diff
Fix deleting of imported sessions
parent
86bbe992
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/de/thm/arsnova/services/SessionService.java
+6
-2
6 additions, 2 deletions
src/main/java/de/thm/arsnova/services/SessionService.java
with
6 additions
and
2 deletions
src/main/java/de/thm/arsnova/services/SessionService.java
+
6
−
2
View file @
4b6a9f54
...
@@ -356,11 +356,15 @@ public class SessionService implements ISessionService, ApplicationEventPublishe
...
@@ -356,11 +356,15 @@ public class SessionService implements ISessionService, ApplicationEventPublishe
for
(
String
subject
:
prepSubjects
)
{
for
(
String
subject
:
prepSubjects
)
{
SortOrder
sortOrder
=
databaseDao
.
getSortOrder
(
session
.
get_id
(),
"preparation"
,
subject
);
SortOrder
sortOrder
=
databaseDao
.
getSortOrder
(
session
.
get_id
(),
"preparation"
,
subject
);
databaseDao
.
deleteSortOrder
(
sortOrder
);
if
(
sortOrder
!=
null
)
{
databaseDao
.
deleteSortOrder
(
sortOrder
);
}
}
}
for
(
String
subject
:
lectureSubjects
)
{
for
(
String
subject
:
lectureSubjects
)
{
SortOrder
sortOrder
=
databaseDao
.
getSortOrder
(
session
.
get_id
(),
"lecture"
,
subject
);
SortOrder
sortOrder
=
databaseDao
.
getSortOrder
(
session
.
get_id
(),
"lecture"
,
subject
);
databaseDao
.
deleteSortOrder
(
sortOrder
);
if
(
sortOrder
!=
null
)
{
databaseDao
.
deleteSortOrder
(
sortOrder
);
}
}
}
databaseDao
.
deleteAllQuestionsWithAnswers
(
session
);
databaseDao
.
deleteAllQuestionsWithAnswers
(
session
);
databaseDao
.
deleteSession
(
session
);
databaseDao
.
deleteSession
(
session
);
...
...
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