Skip to content

Commit

Permalink
Allow null values for feedback_suggestions_enabled column
Browse files Browse the repository at this point in the history
  • Loading branch information
pal03377 committed Nov 24, 2023
1 parent a85364a commit f0f44a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/de/tum/in/www1/artemis/domain/Exercise.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public abstract class Exercise extends BaseExercise implements LearningObject {
private Boolean secondCorrectionEnabled = false;

@Column(name = "feedback_suggestions_enabled") // enables Athena
private boolean feedbackSuggestionsEnabled = false;
private Boolean feedbackSuggestionsEnabled = false;

@ManyToOne
@JsonView(QuizView.Before.class)
Expand Down Expand Up @@ -784,7 +784,7 @@ public void setSecondCorrectionEnabled(boolean secondCorrectionEnabled) {
}

public boolean getFeedbackSuggestionsEnabled() {
return feedbackSuggestionsEnabled;
return Boolean.TRUE.equals(feedbackSuggestionsEnabled);
}

public void setFeedbackSuggestionsEnabled(boolean feedbackSuggestionsEnabled) {
Expand Down

0 comments on commit f0f44a2

Please sign in to comment.