Achieve skills when the certificate are not generated - refs #7525

1.10.x
Angel Fernando Quiroz Campos 11 years ago
parent 584fbc3360
commit ffef26e2da
  1. 8
      main/gradebook/lib/be/category.class.php
  2. 4
      main/inc/lib/certificate.lib.php

@ -1625,6 +1625,14 @@ class Category implements GradebookItem
$category = $cats_course[0];
if (!$category->getGenerateCetificates()) {
$skill = new Skill();
$skill->add_skill_to_user(
$user_id,
$category_id,
api_get_course_int_id(),
api_get_session_id()
);
return false;
}

@ -185,7 +185,9 @@ class Certificate extends Model
$skill = new Skill();
$skill->add_skill_to_user(
$this->user_id,
$this->certificate_data['cat_id']
$this->certificate_data['cat_id'],
$courseId,
$sessionId
);
if (is_dir($this->certification_user_path)) {

Loading…
Cancel
Save