Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.10.6, 3.11.2, 3.11.5
Description
This is a problem because this field can accept timestamps.
Reproduction steps:
- Create a course.
- Visit the course.
- Click on 'Grades' on the left.
- Click on the 'Setup' tab.
- Edit the category for your course by clicking 'Edit' next to the course name and then 'Edit settings'.
- Under 'Category total' click 'Show more...'.
- Check the 'Hidden' checkbox.
- Set 'Hidden until' to 'Enable'.
- Click 'Save changes'.
- Re-edit the category.
- Under 'Category total' click 'Show more...'.
- Notice the 'Hidden until' is disabled.
So the current problem is the field is just ignored.
MDL-49202 fixes this so that field is not ignored but then the following error occurs.
Debug info: ERROR: value "1629360300" is out of range for type smallint
|
UPDATE mdl_grade_categories SET courseid = $1,parent = $2,depth = $3,path = $4,fullname = $5,aggregation = $6,keephigh = $7,droplow = $8,aggregateonlygraded = $9,aggregateoutcomes = $10,timecreated = $11,timemodified = $12,hidden = $13 WHERE id=$14
|
[array (
|
'courseid' => 6,
|
'parent' => NULL,
|
'depth' => '1',
|
'path' => '/5/',
|
'fullname' => '?',
|
'aggregation' => '13',
|
'keephigh' => '0',
|
'droplow' => 0,
|
'aggregateonlygraded' => '1',
|
'aggregateoutcomes' => 0,
|
'timecreated' => '1623216974',
|
'timemodified' => 1629360308,
|
'hidden' => 1629360300,
|
0 => 5,
|
)]
|
Error code: dmlwriteexception
|
Attachments
Issue Links
- Discovered while testing
-
MDL-49202 Checking "Hidden" in grade item settings does not hide the item from student, at the same time selecting "Hide" from dropdown on the setup page does
-
- Closed
-
- is duplicated by
-
MDL-73997 Appear the error Out of range value for column 'hidden' at row 1
-
- Closed
-
- will help resolve
-
MDL-53054 Hidden until date lost on grade category edit
-
- Closed
-