Gradebook - Fix error with field allow_skills_by_subcategory when it is null - refs BT#19823

pull/4266/head
Christian 3 years ago
parent b5ae032cd1
commit 2c2dc36cc0
  1. 2
      main/install/configuration.dist.php
  2. 2
      src/Chamilo/CoreBundle/Entity/GradebookCategory.php

@ -2183,7 +2183,7 @@ INSERT INTO `extra_field` (`extra_field_type`, `field_type`, `variable`, `displa
// 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;

@ -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;

Loading…
Cancel
Save