Browse files

MDL-28397 completion: Activity completion criteria not showing grading

requirement

Credit goes to Evan Irving-Pease for the patch
  • Loading branch information...
1 parent 24654d9 commit 3b9bf6a949b40704b213f5646f04e81ec5eb931c Aaron Barnes committed Aug 22, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/completion/completion_criteria_activity.php
View
2 lib/completion/completion_criteria_activity.php
@@ -269,7 +269,7 @@ public function get_details($completion) {
$details['requirement'][] = get_string('viewingactivity', 'completion', $this->module);
}
- if ($module->completiongradeitemnumber) {
+ if (!is_null($module->completiongradeitemnumber)) {
$details['requirement'][] = get_string('achievinggrade', 'completion');
}
}

0 comments on commit 3b9bf6a

Please sign in to comment.