Permalink
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 9e47a85 commit 551fa5f4ddda2c44e3f6e26a55bd28f361dbf031 Aaron Barnes committed Aug 22, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 551fa5f

Please sign in to comment.