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

Create an additional admin "Required" setting flag and apply it to quiz require password setting

    XMLWordPrintable

Details

    • MOODLE_39_STABLE
    • MDL-67351-master_required_setting
    • Hide

      Set up a small quiz

      1. Create a simple course (XS) using generator or in UI.
      2. In the main menu, click on Site home.
      3. Open the course you created.
      4. Click on the settings cog and 'Turn editing on'.
      5. Click 'Add an activity or resource' in any section.
      6. Choose Quiz and click 'Add'.
      7. Give the quiz a name and click 'Save and return to course'.

      Test that a setting can be given a 'required' admin flag.

      1. Click 'Site administration' in main menu.
      2. GOTO Plugins->Activity modules->Quiz->General settings
      3. Scroll down to 'Require password' setting
      4. VERIFY that there is a 'Required' checkbox setting next to an 'Advanced' checkbox setting.
      5. Make sure the checkbox is ticked for the next test.

      Test that a mod setting with required flag set to true is required in form.

      1. Go back to the quiz you created. Goto Site home-> {Course name}

        ->

        {Quiz name}
      2. Click the cog settings wheel and click 'Edit settings'
      3. Goto section 'Extra restrictions on attempts.
      4. VERIFY that 'Require password' setting is required with a red 'required' icon.
      5. VERIFY that the form cannot be saved with the 'Require password' setting unset.
      Show
      Set up a small quiz Create a simple course (XS) using generator or in UI. In the main menu, click on Site home. Open the course you created. Click on the settings cog and 'Turn editing on'. Click 'Add an activity or resource' in any section. Choose Quiz and click 'Add'. Give the quiz a name and click 'Save and return to course'. Test that a setting can be given a 'required' admin flag. Click 'Site administration' in main menu. GOTO Plugins->Activity modules->Quiz->General settings Scroll down to 'Require password' setting VERIFY that there is a 'Required' checkbox setting next to an 'Advanced' checkbox setting. Make sure the checkbox is ticked for the next test. Test that a mod setting with required flag set to true is required in form. Go back to the quiz you created. Goto Site home-> {Course name} -> {Quiz name} Click the cog settings wheel and click 'Edit settings' Goto section 'Extra restrictions on attempts. VERIFY that 'Require password' setting is required with a red 'required' icon. VERIFY that the form cannot be saved with the 'Require password' setting unset.

    Description

      Add a new global setting for quiz module to be able to enforce that all quizzes to  have a password. If this setting is enabled, then password field should be mandatory for all new quizzes.

       

      Attachments

        Issue Links

          Activity

            People

              andrewmadden Andrew Madden
              dmitriim Dmitrii Metelkin
              Tim Hunt Tim Hunt
              Adrian Greeve Adrian Greeve
              Gladys Basiana Gladys Basiana
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                15/Jun/20

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 hours
                  3h