Skip to content

Commit

Permalink
Gradebook - Fix error with field allow_skills_by_subcategory when it …
Browse files Browse the repository at this point in the history
…is null - refs BT#19823
  • Loading branch information
cfasanando committed Apr 29, 2022
1 parent b5ae032 commit 2c2dc36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main/install/configuration.dist.php
Expand Up @@ -2183,7 +2183,7 @@

// Enable skills in subcategory to work independant on assignement
// Require DB changes:
// ALTER TABLE gradebook_category ADD allow_skills_by_subcategory tinyint(1) NOT 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 uncomment the allowSkillsBySubcategory get and set
//$_configuration['gradebook_enable_subcategory_skills_independant_assignement'] = false;
Expand Down
2 changes: 1 addition & 1 deletion src/Chamilo/CoreBundle/Entity/GradebookCategory.php
Expand Up @@ -125,7 +125,7 @@ class GradebookCategory
*
* @var int
*
* @ORM\Column(name="allow_skills_by_subcategory", type="integer", nullable=false)
* @ORM\Column(name="allow_skills_by_subcategory", type="integer", nullable=true, options={"default": 1})
*/
//protected $allowSkillsBySubcategory;

Expand Down

0 comments on commit 2c2dc36

Please sign in to comment.