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

Quiz attempt popup doesn't respect theme's config.php layout array

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.4
    • 2.4
    • Quiz, Themes
    • MOODLE_24_STABLE
    • MOODLE_24_STABLE
    • Hide

      Please test with one or more of the standard themes (this should work in any theme).

      1. As teacher: Create a quiz with "Browser security" set to "Full screen pop-up with some JavaScript security", and "Show blocks during the attempt" turned off.
      2. As student: Attempt the quiz. It should open in a pop-up window. The layout should be very plain:
        • no header
        • no footer
        • no navbar
        • login information shows who is logged in, but no logout link.
        • no real blocks, just the quiz navigation that shows which questions are in the quiz, and the timer (if required).
      3. Now turn on "Show blocks during the attempt" and attempt the quiz again as a student.
      4. Verify the only change to the layout is that now the real blocks (probably navigation and settings) are shown.
      Show
      Please test with one or more of the standard themes (this should work in any theme). As teacher: Create a quiz with "Browser security" set to "Full screen pop-up with some JavaScript security", and "Show blocks during the attempt" turned off. As student: Attempt the quiz. It should open in a pop-up window. The layout should be very plain: no header no footer no navbar login information shows who is logged in, but no logout link. no real blocks, just the quiz navigation that shows which questions are in the quiz, and the timer (if required). Now turn on "Show blocks during the attempt" and attempt the quiz again as a student. Verify the only change to the layout is that now the real blocks (probably navigation and settings) are shown.

    Description

      The base theme sets the config.php's $THEME->layouts to have popup layout with the following settings:
      'popup' => array(
      'file' => 'general.php',
      'regions' => array(),
      'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true, 'nologininfo'=>true),
      ),

      A quiz set to browser security full screen popup with some javascript security ignores all options. The header, footer, navigation and custom menu all show.

      To recreate

      1. set to standard theme
      2. Create a quiz and set the browser security to full screen popup with javascript security
      3. Login as a student in a course with the quiz
      4. Attempt the quiz and see all of the parts of the theme.

      Attachments

        Issue Links

          Activity

            People

              timhunt Tim Hunt
              jrh18 Jason Hardin
              Sam Hemelryk Sam Hemelryk
              Adrian Greeve Adrian Greeve
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                3/Dec/12