mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-01-10 11:19:25 +00:00
[AB-341] fixing unSuggest not working correctly in case there are votes on the suggestion
This commit is contained in:
@@ -402,6 +402,7 @@ public class SuggestionServiceBean implements SuggestionService {
|
||||
public void deleteSuggestion(Long suggestionId, Long serverId) {
|
||||
Suggestion suggestion = suggestionManagementService.getSuggestion(serverId, suggestionId);
|
||||
cancelSuggestionReminder(suggestion);
|
||||
suggestionVoteManagementService.deleteSuggestionVotes(suggestion);
|
||||
suggestionManagementService.deleteSuggestion(suggestion);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user