if (oldInheritControls && !newInheritControls) {
tmpControl.setSwitches(Control.CTRL_UNDEF, Control.CTRL_UNDEF, Control.CTRL_UNDEF);
assessment.setInheritControls(false);
}
OutcomesProcessing outcomesProcessing = assessment.getOutcomes_processing();
if (outcomesProcessing == null) {
// Create outcomes processing object if it doesn't already exist.
// Happens
// when creating a new assessment
outcomesProcessing = new OutcomesProcessing();
assessment.setOutcomes_processing(outcomesProcessing);
}
String cutval = ureq.getParameter(OutcomesProcessing.CUTVALUE);
try {
Float.parseFloat(cutval);
} catch (NumberFormatException nfe) {
cutval = "0.0";
this.showWarning("error.cutval");
}
outcomesProcessing.setField(OutcomesProcessing.CUTVALUE, cutval);
main.contextPut(OutcomesProcessing.CUTVALUE, cutval);
if (ureq.getParameter("duration").equals("Yes")) {
String durationMin = ureq.getParameter("duration_min");
String durationSec = ureq.getParameter("duration_sec");