Skip to content
Snippets Groups Projects
Commit 0f53f895 authored by Alexander Loewe's avatar Alexander Loewe
Browse files

Fixed duplicate rendering of gradingscheme

parent 0d250731
No related branches found
No related tags found
No related merge requests found
...@@ -140,12 +140,12 @@ class qtype_moopt_renderer extends qtype_renderer { ...@@ -140,12 +140,12 @@ class qtype_moopt_renderer extends qtype_renderer {
} }
if (!$qa->get_state()->is_graded() && ($qa->get_question()->showstudgradingscheme || has_capability('mod/quiz:grade', $PAGE->context))) { if (!$qa->get_state()->is_graded() && ($qa->get_question()->showstudgradingscheme || has_capability('mod/quiz:grade', $PAGE->context))) {
$gradingscheme = $this->render_grading_scheme($qa); $gradingscheme = $this->render_grading_scheme($qa);
//$o .= html_writer::tag('div', $gradingscheme, array('class' => 'gradingscheme'));
if(!$qa->get_question()->showstudgradingscheme){ if(!$qa->get_question()->showstudgradingscheme){
$o .= html_writer::tag('div', $gradingscheme, array('class' => 'gradingscheme')); $o .= html_writer::tag('div', $gradingscheme, array('class' => 'gradingscheme'));
} } else {
$o .= html_writer::tag('div', $gradingscheme); $o .= html_writer::tag('div', $gradingscheme);
} }
}
if ($qa->get_state()->is_finished() || $laststep->has_behaviour_var('_completeForGrading')) { if ($qa->get_state()->is_finished() || $laststep->has_behaviour_var('_completeForGrading')) {
// state->is_finished() implies that a question attempt has been finished by the student, // state->is_finished() implies that a question attempt has been finished by the student,
// i.e. the student was sure enough to click the button to submit their solution. // i.e. the student was sure enough to click the button to submit their solution.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment