Skip to content
Snippets Groups Projects
Commit 07a5b8f1 authored by uhensler's avatar uhensler
Browse files

OO-4171: Set min/max of score to 0 if no evaluation form is selected yet

parent 0e572093
No related branches found
No related tags found
No related merge requests found
...@@ -525,6 +525,11 @@ public class MSConfigController extends FormBasicController { ...@@ -525,6 +525,11 @@ public class MSConfigController extends FormBasicController {
} }
private void doCalculateMinMax() { private void doCalculateMinMax() {
if (formEntry == null) {
formMinMax = MinMax.of(Float.valueOf(0), Float.valueOf(0));
return;
};
String scoreKey = scoreEl != null && scoreEl.isOneSelected() String scoreKey = scoreEl != null && scoreEl.isOneSelected()
? scoreEl.getSelectedKey() ? scoreEl.getSelectedKey()
: config.getStringValue(MSCourseNode.CONFIG_KEY_SCORE); : config.getStringValue(MSCourseNode.CONFIG_KEY_SCORE);
......
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