Fix get_grade_model_id see BT#10470

1.10.x
Julio Montoya 9 years ago
parent 9bfd1d26b7
commit da2cffb9c8
  1. 8
      main/gradebook/lib/be/category.class.php

@ -244,13 +244,19 @@ class Category implements GradebookItem
}
/**
* @return int
* @return null
*/
public function get_grade_model_id()
{
if ($this->grade_model_id < 0) {
return null;
}
return $this->grade_model_id;
}
/**
* @return string
*/
public function get_type()
{
return 'category';

Loading…
Cancel
Save