-
Bug
-
Resolution: Fixed
-
Major
-
2.3.6
-
MOODLE_23_STABLE
-
MOODLE_23_STABLE, MOODLE_24_STABLE
-
This has been fixed for the manual Activity completion case (see MDL-36808), however it hasn't been fixed when the completion is set to automatic.
This is also fixed for 2.5 due to a refactoring (see MDL-37085), but has yet to be fixed in the 2.4 branch.
The following code (taken from http://git.moodle.org/gw?p=moodle.git;a=blob;f=course/lib.php;hb=refs/heads/MOODLE_24_STABLE )
/course/lib.php 1681-1685 |
} else {
|
// In auto mode, or when editing, the icon is just an image
|
echo "<span class='autocompletion'>";
|
echo "<img src='$imgsrc' alt='$imgalt' title='$imgalt' /></span>";
|
}
|
should be replaced with this (ported from the 2.5 branch)
Fixed /course/lib.php |
} else {
|
// In auto mode, or when editing, the icon is just an image
|
$completionpixicon = new pix_icon('i/completion-'.$completionicon, $imgalt, '',
|
array('title' => $imgalt));
|
echo html_writer::tag('span', $OUTPUT->render($completionpixicon),
|
array('class' => 'autocompletion'));
|
}
|