Browse files

MDL-33576: If grade set to "No grade" in mod_assign hide inputs for q…

…uickgrading
  • Loading branch information...
1 parent 0961ca7 commit e7ade405ebfd81005ea7419f820979bd2637842d Damyon Wiese committed Jun 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/assign/locallib.php
View
2 mod/assign/locallib.php
@@ -894,7 +894,7 @@ public function display_grade($grade, $editing, $userid=0, $modified=0) {
if ($this->get_instance()->grade >= 0) {
// Normal number
- if ($editing) {
+ if ($editing && $this->get_instance()->grade > 0) {
if ($grade < 0) {
$displaygrade = '';
} else {

0 comments on commit e7ade40

Please sign in to comment.