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

Wrong colors in question overview before quiz submission

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.9.6, 3.0.4
    • 2.9.5, 3.0.3, 3.1
    • Quiz
    • MOODLE_29_STABLE, MOODLE_30_STABLE, MOODLE_31_STABLE
    • MOODLE_29_STABLE, MOODLE_30_STABLE
    • Hide
      1. Create a quiz using deferred feedback behaviour.
      2. Add a couple of questions on two different pages.
      3. Add a heading between the two pages.
      4. Attempt the quiz as a student (or just preview it as teacher/admin).
      5. Answer the first question, then click Finish attempt ...
      6. Inspect the HTML of the summary table using your browser.
      7. Verify that the <tr>s for the section heading rows have class "quizsummaryheading".
      8. Verify that the <tr> for the first question has class "quizsummary1 answersaved".
      9. Verify that the <tr> for the second question has class "quizsummary2 notyetanswered".

      (Most standard themes do not use these class names to apply styling, so there is no obvious user-visible difference, as in the reporter's theme. Hence you need to verify the HTML structure.)

      Show
      Create a quiz using deferred feedback behaviour. Add a couple of questions on two different pages. Add a heading between the two pages. Attempt the quiz as a student (or just preview it as teacher/admin). Answer the first question, then click Finish attempt ... Inspect the HTML of the summary table using your browser. Verify that the <tr>s for the section heading rows have class "quizsummaryheading". Verify that the <tr> for the first question has class "quizsummary1 answersaved". Verify that the <tr> for the second question has class "quizsummary2 notyetanswered". (Most standard themes do not use these class names to apply styling, so there is no obvious user-visible difference, as in the reporter's theme. Hence you need to verify the HTML structure.)

      Problem
      Before a quiz is submitted the student receives an overview of all questions. For each question he/she gets the information 'answer saved', 'incomplete answer' or 'not yet answered'. This information is accompanied by a color code (also used in the quiz navigation): 'answer saved' is displayed in green, 'incomplete answer' in yellow and 'not yet answered' in white.
      However, when the quiz contains section headings (edit quiz > add > add section heading) the information about each question is correct but the color is wrong. It seems that the color is shifted down the list according to the number of section headings.

      Expected behaviour
      The color and the information about the question should always match regardless of how many section headings a quiz contains.

      Remark
      In the quiz navigation the color code is fine.

      How to reproduce

      1. Create a quiz with minimum 3 questions and at least one section heading.
      2. Open a preview, answer one question fully, one partially and do not attempt one of the questions.
      3. click on finish attempt (but do not yet submit the quiz) and have a look at the question overview.

            timhunt Tim Hunt
            a.bonaccorso Antonia Bonaccorso
            cameron1729 cameron1729
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Jun Pataleta Jun Pataleta
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.