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

OO-792: accept null value for the equals

parent b31baff0
No related branches found
No related tags found
No related merge requests found
......@@ -170,11 +170,11 @@ public class FIBItemController extends DefaultController implements ControllerEv
// min_value, max_value, valuation_method
question.setMinValue(ureq.getParameter("min_value"));
question.setMaxValue(ureq.getParameter("max_value"));
question.setSingleCorrect(ureq.getParameter("valuation_method").equals("single"));
question.setSingleCorrect("single".equals(ureq.getParameter("valuation_method")));
if (question.isSingleCorrect()) {
question.setSingleCorrectScore(ureq.getParameter("single_score"));
} else {
question.setSingleCorrectScore(0);
question.setSingleCorrectScore(0.0f);
}
}
......
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