Skip to content

Commit

Permalink
#10466: quick fix for math challenge contact form on 403 error page (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromeroucou authored Jun 10, 2024
1 parent f46a836 commit e7a0e37
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/release-notes/10466-math-challenge-403-error-page.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
On forbidden access error page, also know as 403 error page, the math challenge is now correctly display to submit the contact form.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ public void setUserSum(Long userSum) {
}

public String getMessageTo() {
if (op1 == null || op2 == null) {
// Fix for 403 error page: initUserInput method doesn't call before
initUserInput(null);
}
if (feedbackTarget == null) {
return BrandingUtil.getSupportTeamName(systemAddress);
} else if (feedbackTarget.isInstanceofDataverse()) {
Expand Down

0 comments on commit e7a0e37

Please sign in to comment.