Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.6.3, 2.7, 2.7.3, 2.8.1
-
MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE
-
MOODLE_27_STABLE, MOODLE_28_STABLE
-
-
Description
There is an issue in the mod/lesson/essay.php(line 357):
// Different colors for all the states of an essay (graded, if sent, not graded)
|
if (!$essayinfo->graded) {
|
$attributes['class'] = "graded";
|
} elseif (!$essayinfo->sent) {
|
$attributes['class'] = "sent";
|
} else {
|
$attributes['class'] = "ungraded";
|
}
|
Code above always marks essays as ungraded. Should be changed to:
// Different colors for all the states of an essay (graded, if sent, not graded)
|
if (!$essayinfo->graded) {
|
$attributes['class'] = "ungraded";
|
} elseif (!$essayinfo->sent) {
|
$attributes['class'] = "graded";
|
} else {
|
$attributes['class'] = "sent";
|
}
|
There is also issue with default theme. By default it has no CSS classes "ungraded", "graded", "sent". Current workaround: add CSS from administration panel.
Attachments
Issue Links
- will help resolve
-
MDL-45097 Showing which essays have already been graded in Lessons
-
- Closed
-