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

OO-291: fix wrong noAreasFound parameter send to the velocity template of the...

OO-291: fix wrong noAreasFound parameter send to the velocity template of the group administration of areas
parent d3e5a84e
No related branches found
No related tags found
No related merge requests found
......@@ -78,7 +78,7 @@ public class BusinessGroupAreasController extends FormBasicController {
FormLayoutContainer choiceContainer = FormLayoutContainer.createDefaultFormLayout("areasChoice", getTranslator());
choiceContainer.setRootForm(mainForm);
flc.add(choiceContainer);
flc.add("areasChoice", choiceContainer);
boolean hasAreas = false;
List<BGArea> selectedAreas = areaManager.findBGAreasOfBusinessGroup(businessGroup);
......@@ -111,8 +111,8 @@ public class BusinessGroupAreasController extends FormBasicController {
}
flc.contextPut("noAreasFound", new Boolean(!hasAreas));
boolean isAdmin = (ureq.getUserSession().getRoles().isOLATAdmin() || ureq.getUserSession().getRoles().isGroupManager());
flc.contextPut("noAreasFound", new Boolean(isAdmin));
Boolean isAdmin = new Boolean(ureq.getUserSession().getRoles().isOLATAdmin() || ureq.getUserSession().getRoles().isGroupManager());
flc.contextPut("isGmAdmin", isAdmin);
}
@Override
......
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