Skip to content

Commit

Permalink
IQSS#10466: quick fix for math challenge contact form on 403 error pa…
Browse files Browse the repository at this point in the history
…ge (IQSS#10602)
  • Loading branch information
jeromeroucou authored and luddaniel committed Jun 12, 2024
1 parent dfdea69 commit 8abcb98
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 8abcb98

Please sign in to comment.