Gradebook - Fix duplicated notifications for skilss - refs BT#19823

pull/4294/head
Christian 3 years ago
parent c37d1698b8
commit 3d8b6bb1d7
  1. 4
      main/gradebook/lib/be/category.class.php
  2. 1
      main/install/configuration.dist.php
  3. 8
      src/Chamilo/CoreBundle/Entity/GradebookCategory.php

@ -2163,10 +2163,6 @@ class Category implements GradebookItem
if ($skillToolEnabled) { if ($skillToolEnabled) {
$skill = new Skill(); $skill = new Skill();
$objSkillRelUser = new SkillRelUser(); $objSkillRelUser = new SkillRelUser();
// It cleans the previous results to generate the new user skills
$objSkillRelUser->deleteUserSkill($user_id, $courseId, $sessionId);
$skill->addSkillToUser( $skill->addSkillToUser(
$user_id, $user_id,
$category, $category,

@ -2216,7 +2216,6 @@ INSERT INTO `extra_field` (`extra_field_type`, `field_type`, `variable`, `displa
// Require DB changes: // Require DB changes:
// ALTER TABLE gradebook_category ADD allow_skills_by_subcategory tinyint(1) NULL DEFAULT '1'; // ALTER TABLE gradebook_category ADD allow_skills_by_subcategory tinyint(1) NULL DEFAULT '1';
// Requires edit Entity GradebookCategory: src/Chamilo/CoreBundle/Entity/GradebookCategory.php uncomment "allowSkillsBySubcategory" variable. // Requires edit Entity GradebookCategory: src/Chamilo/CoreBundle/Entity/GradebookCategory.php uncomment "allowSkillsBySubcategory" variable.
// Requires uncomment the allowSkillsBySubcategory get and set
//$_configuration['gradebook_enable_subcategory_skills_independant_assignement'] = false; //$_configuration['gradebook_enable_subcategory_skills_independant_assignement'] = false;
// Shows the deleted quizzes in my progress page. // Shows the deleted quizzes in my progress page.

@ -514,20 +514,20 @@ class GradebookCategory
/** /**
* @return int * @return int
*/ */
/*public function getAllowSkillsBySubcategory() public function getAllowSkillsBySubcategory()
{ {
return $this->allowSkillsBySubcategory; return $this->allowSkillsBySubcategory;
}*/ }
/** /**
* @param int $allowSkillsBySubcategory * @param int $allowSkillsBySubcategory
* *
* @return GradebookCategory * @return GradebookCategory
*/ */
/*public function setAllowSkillsBySubcategory($allowSkillsBySubcategory) public function setAllowSkillsBySubcategory($allowSkillsBySubcategory)
{ {
$this->allowSkillsBySubcategory = $allowSkillsBySubcategory; $this->allowSkillsBySubcategory = $allowSkillsBySubcategory;
return $this; return $this;
}*/ }
} }

Loading…
Cancel
Save