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

Locking invisible quiz in gradebook setup makes it visible (but only on gradebook setup page)

    XMLWordPrintable

Details

    • MOODLE_35_STABLE
    • MOODLE_38_STABLE, MOODLE_39_STABLE
    • MOODLE_39_STABLE-MDL-68284
    • MOODLE_310_STABLE-MDL-68284
    • master-MDL-68284
    • Hide

      Prerequisites:

      1. Create a course
      2. Create a quiz

      Testing:

      1. Before upgrade, log in as an admin and go to the course page
        1. If you have already upgraded then check out the earlier commit:
          • master - git checkout b79f17e609ebec12c7226e119d811e9aa261f38e
          • 3.10 - git checkout 08e8205d6f1599d6e74c287660236f0c6f60f79d
          • 3.9 - git checkout 565bc965b14a28cbe63a15f789a1e40f717a155a
          • 3.8 - git checkout f6eafcae3ef98f14da6286737a88e548017e32fa
        2. If you have the Moodle Developer Kit (MDK) then run - mdk run version.php on the command line.
      2. Hide quiz on course page (make sure it is greyed out and marked as 'Hidden from students')
      3. Go to gradebook setup page
      4. Verify that quiz grade item is greyed out
      5. Edit quiz grade item and check 'Locked' checkbox. Save changes
      6. Verify that quiz grade item shows as visible on the gradebook.
      7. Perform the upgrade
        1. if you performed a check out in step 1 then run the following command:
          • master - git checkout master
          • 3.10 - git checkout MOODLE_310_STABLE
          • 3.9 - git checkout MOODLE_39_STABLE
          • 3.8 - git checkout MOODLE_38_STABLE
        2. Run the upgrade either through the webpage or the command line.
      8. Go back to the gradebook and confirm the quiz shows as hidden
      9. Confirm the quiz is still shown as hidden on the course homepage.
      10. Show the quiz item
      11. Repeat #2 - #4
      Show
      Prerequisites: Create a course Create a quiz Testing: Before upgrade , log in as an admin and go to the course page If you have already upgraded then check out the earlier commit: master - git checkout b79f17e609ebec12c7226e119d811e9aa261f38e 3.10 - git checkout 08e8205d6f1599d6e74c287660236f0c6f60f79d 3.9 - git checkout 565bc965b14a28cbe63a15f789a1e40f717a155a 3.8 - git checkout f6eafcae3ef98f14da6286737a88e548017e32fa If you have the Moodle Developer Kit (MDK) then run - mdk run version.php on the command line. Hide quiz on course page (make sure it is greyed out and marked as 'Hidden from students') Go to gradebook setup page Verify that quiz grade item is greyed out Edit quiz grade item and check 'Locked' checkbox. Save changes Verify that quiz grade item shows as visible on the gradebook. Perform the upgrade if you performed a check out in step 1 then run the following command: master - git checkout master 3.10 - git checkout MOODLE_310_STABLE 3.9 - git checkout MOODLE_39_STABLE 3.8 - git checkout MOODLE_38_STABLE Run the upgrade either through the webpage or the command line. Go back to the gradebook and confirm the quiz shows as hidden Confirm the quiz is still shown as hidden on the course homepage. Show the quiz item Repeat #2 - #4

    Description

      The seems to be some UI issue with quiz when locking the corresponding grade item on gradebook setup page. After you lock it - its not greyed out anymore, so it looks like its visible, but it is still invisible on course page/reports

       

       

      Attachments

        Issue Links

          Activity

            People

              yao9394 John Yao
              ilyatregubov Ilya Tregubov
              Peter Dias Peter Dias
              Adrian Greeve Adrian Greeve
              Janelle Barcega Janelle Barcega
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                9/Nov/20

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 days, 3 hours, 15 minutes
                  2d 3h 15m