Fix min certificate to be 0 see BT#15937

pull/2970/head
Julio Montoya 6 years ago
parent 94228f25e1
commit b6d3f9be70
  1. 4
      main/gradebook/lib/fe/catform.class.php

@ -273,6 +273,10 @@ class CatForm extends FormValidator
} }
$defaultCertification = 0; $defaultCertification = 0;
if (!empty($this->category_object)) {
$defaultCertification = $this->category_object->getCertificateMinScore();
}
if (isset($this->category_object) && if (isset($this->category_object) &&
$this->category_object->get_parent_id() == 0 $this->category_object->get_parent_id() == 0
) { ) {

Loading…
Cancel
Save