Merge pull request #4266 from christianbeeznest/ASF-19823-2

Gradebook - Fix error with field allow_skills_by_subcategory when it is null - refs BT#19823
pull/4268/head
Nicolas Ducoulombier 3 years ago committed by GitHub
commit 06bf6aff06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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