Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
MilderJoghurt
rlf-server
Commits
662566e7
Commit
662566e7
authored
Jun 28, 2015
by
Fjen Undso
Browse files
fix vote request reset
parent
e846bef3
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/controllers/VoteController.java
View file @
662566e7
...
...
@@ -49,6 +49,7 @@ public class VoteController extends Controller {
for
(
Vote
v
:
sessionvotes
)
{
if
(
v
.
type
==
Vote
.
Type
.
REQUEST
&&
(
v
.
owner
==
vote
.
owner
||
vote
.
owner
==
session
.
owner
))
{
session
.
deleteVote
(
v
);
v
.
delete
();
}
}
}
else
{
...
...
app/models/Session.java
View file @
662566e7
...
...
@@ -90,7 +90,6 @@ public class Session extends Model {
public
void
deleteVote
(
Vote
v
)
{
this
.
votes
.
remove
(
v
);
v
.
delete
();
}
public
void
addVote
(
Vote
v
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment