Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-21939

Student gradebook table is malformed when a category is hidden

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.9.8
    • Fix Version/s: None
    • Component/s: Gradebook
    • Labels:
      None
    • Environment:
      n/a
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_19_STABLE

      Description

      When gradebook categories are setup, with nested categories, e.g.

      Course
      ---Unit 1
      ------Unit 1 Graded
      ------Unit 1 Ungraded
      ------Unit 1 Test
      ---Unit 2
      ------Unit 2 Graded
      ------Unit 2 Ungraded
      ------Unit 2 Test

      The student gardebook reflects this structure. Specifically, the parent categories ('Unit 1' and 'Unit 2') have leading cells that have a rowspan value that means the child categories are visually contained within the parent.

      However...

      If one of the sub-categories (e.g. 'Unit 1 Ungraded') is hidden by the teacher, the student gradebook becomes malformed. The parent category (in this case 'Unit 1') has a leading cell rowspan value that includes the hidden child category, even though the child cells are not shown. This incorrect rowspan value deforms the remainder of the gradebook table.

      This has been discussed in the forums (where there are screenshots showing the issue), where I've also posted a patch...

      http://moodle.org/mod/forum/discuss.php?d=142229#p641882

      (This seems are very visible bug, yet I couldn't find it in the Tracker, nor many mentions in the forums - strange!)

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  1 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: