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

Gradebook - columns become misaligned by a category with no total and items

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      PHPUnit
      1. Run core_grade_testsuite.
        • Confirm that there are no errors or failures.
      Manual testing
      1. Restore the attached course backups MDL-48015-test-course.mbz and GloriousGradebook.mbz.
      2. Go to the course restored from MDL-48015-test-course.mbz.
      3. Under Course administration, Gradebook setup.
        • Confirm that there are no misaligned rows on the Gradebook setup table.
      4. Under Course administration, click Grades.
        • Confirm that there are no extra/misaligned column headers.
      5. Repeat the above testing instructions for the course restored from GloriousGradebook.mbz.

      Bonus

      1. Create any other combination of grade category/item combinations that you can think of and confirm that there are no extra/misaligned column headers.
      Show
      PHPUnit Run core_grade_testsuite. Confirm that there are no errors or failures. Manual testing Restore the attached course backups MDL-48015-test-course.mbz and GloriousGradebook.mbz . Go to the course restored from MDL-48015-test-course.mbz . Under Course administration, Gradebook setup. Confirm that there are no misaligned rows on the Gradebook setup table. Under Course administration, click Grades. Confirm that there are no extra/misaligned column headers. Repeat the above testing instructions for the course restored from GloriousGradebook.mbz . Bonus Create any other combination of grade category/item combinations that you can think of and confirm that there are no extra/misaligned column headers.
    • Affected Branches:
      MOODLE_27_STABLE, MOODLE_29_STABLE, MOODLE_30_STABLE, MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_29_STABLE, MOODLE_30_STABLE
    • Pull Master Branch:
      MDL-48015-master
    • Sprint:
      3.1 Sprint 4
    • Issue size:
      Small

      Description

      When a category exists that has no total and no grade items within it, it creates a column in the header of the gradebook, but no column below it. The columns of grades gets shifted to fill the space below that category, therefore the headings of grade items are shown above the wrong items.

      To reproduce:

      1. Go to Gradebook
      2. Create a category with Category Total - Grade Type = None
      3. Make sure category is before other categories with grade items
      4. In Grade Report view:
        1. there should be a blank column beneath empty category header to keep grade items aligned
        2. grade items for next category incorrectly show beneath empty category header

        Attachments

        1. category_total_setting.png
          21 kB
          Marina Glancy
        2. columnsaligned.png
          36 kB
          John Iglar
        3. columnsmisaligned.png
          35 kB
          John Iglar
        4. GloriousGradebook.mbz
          191 kB
          Jun Pataleta
        5. graderreport.png
          48 kB
          Marina Glancy
        6. MDL-48015-test-course.mbz
          757 kB
          Jun Pataleta
        7. setup_screen.png
          52 kB
          Marina Glancy

          Issue Links

            Activity

              People

              • Votes:
                7 Vote for this issue
                Watchers:
                17 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  14/Mar/16