Skip to content
Snippets Groups Projects
Commit b7bbcbd2 authored by srosse's avatar srosse
Browse files

OO-652: fix escaping issue in disclaimer controller

parent 49f5c892
No related branches found
No related tags found
No related merge requests found
......@@ -137,7 +137,7 @@ public class DisclaimerController extends BasicController {
@Override
protected void event(UserRequest ureq, Controller source, Event event) {
if (source == this.disclaimerFormController) {
if (event == event.CANCELLED_EVENT) {
if (event == Event.CANCELLED_EVENT) {
fireEvent(ureq, Event.CANCELLED_EVENT);
} else if (event == Event.DONE_EVENT) {
// Verify that, if the additional checkbox is configured to be visible, it is checked as well
......
......@@ -82,6 +82,7 @@ public class DisclaimerFormController extends FormBasicController {
protected void initForm(FormItemContainer formLayout, Controller listener, UserRequest ureq) {
// Add the "accept" checkbox to the form.
acceptCheckbox = uifactory.addCheckboxesVertical(ACKNOWLEDGE_CHECKBOX_NAME, null, formLayout, new String[] {DCL_CHECKBOX_KEY}, new String[] {translate(NLS_DISCLAIMER_ACKNOWLEDGED)}, null, 1);
acceptCheckbox.setEscapeHtml(false);
acceptCheckbox.setMandatory(false);
acceptCheckbox.select(DCL_CHECKBOX_KEY, readOnly);
......@@ -90,6 +91,7 @@ public class DisclaimerFormController extends FormBasicController {
String additionalCheckboxText = translate("disclaimer.additionalcheckbox");
if (additionalCheckboxText != null) {
additionalCheckbox = uifactory.addCheckboxesVertical(ADDITIONAL_CHECKBOX_NAME, null, formLayout, new String[] {DCL_CHECKBOX_KEY2}, new String[] {additionalCheckboxText}, null, 1);
additionalCheckbox.setEscapeHtml(false);
additionalCheckbox.select(DCL_CHECKBOX_KEY2, readOnly);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment