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

OO-2787: make the title in assignment really mandatory

parent 5b5d85ac
No related branches found
No related tags found
No related merge requests found
......@@ -352,6 +352,12 @@ public class AssignmentEditController extends FormBasicController {
protected boolean validateFormLogic(UserRequest ureq) {
boolean allOk = true;
titleEl.clearError();
if(!StringHelper.containsNonWhitespace(titleEl.getValue())) {
titleEl.setErrorKey("form.legende.mandatory", null);
allOk &= false;
}
if(sectionsEl != null) {
sectionsEl.clearError();
if(!sectionsEl.isOneSelected()) {
......
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