-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 15.2.5
-
Fix Version/s: 15.2.6
-
Component/s: None
-
Labels:None
-
Funded by:
Add a info course node to a learning path and change the duration to something. The next time you want to edit the info course node a RS occurs:
Must release course lock since an exception occured in class org.olat.course.editor.EditorMainController [in ] org.olat.core.logging.AssertException: could not set <1> to true because key was not found! at org.olat.core.gui.components.form.flexible.impl.elements.SelectboxSelectionImpl.select(SelectboxSelectionImpl.java:227) at org.olat.course.nodes.info.InfoConfigController.initForm(InfoConfigController.java:116) at
The lock has nothing to do with it. I think there's something going wrong when initializing the GUI component (InfoConfigController.java):
durationSelection = uifactory.addDropdownSingleselect("pane.tab.infos_config.max_duration", showLayout, maxDurationValues, maxDurationValues, null); durationSelection.setLabel("pane.tab.infos_config.max", null); durationSelection.setElementCssClass("o_sel_course_info_duration"); durationSelection.addActionListener(FormEvent.ONCHANGE); String durationStr = (String)config.get(InfoCourseNodeConfiguration.CONFIG_DURATION); if(StringHelper.containsNonWhitespace(durationStr)) { durationSelection.select(durationStr, true); } else { durationSelection.select("30", true); }
There is no dropdown menu rendered but a normal text input box.