Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…uickgrading
  • Loading branch information...
commit e7ade405ebfd81005ea7419f820979bd2637842d 1 parent 0961ca7
Damyon Wiese authored
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 {
Please sign in to comment.
Something went wrong with that request. Please try again.