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

OO-2500: use a safe method to retrieve the configuration for memo/notices

parent 1370ff2b
No related branches found
No related tags found
No related merge requests found
......@@ -317,8 +317,8 @@ public class IQDisplayController extends DefaultController implements GenericEve
boolean itemPageSequence = ((String)modConfig.get(IQEditController.CONFIG_KEY_SEQUENCE)).equals(AssessmentInstance.QMD_ENTRY_SEQUENCE_ITEM);
IQMenuDisplayConf mdc = new IQMenuDisplayConf(renderSectionsOnly.booleanValue(), enabledMenu, itemPageSequence);
tmp = modConfig.get(IQEditController.CONFIG_KEY_MEMO);
boolean memo = tmp == null ? false : ((Boolean)tmp).booleanValue();
Boolean tmpMemo = modConfig.getBooleanEntry(IQEditController.CONFIG_KEY_MEMO);
boolean memo = tmpMemo == null ? false : tmpMemo.booleanValue();
qticomp = new IQComponent("qticomponent", translator, ai, mdc, memo);
......
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