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

Multiple choice display of correct answers badly laid out

XMLWordPrintable

    • MOODLE_39_STABLE
    • MDL-69012-master-3
    • Hide

      Prerequisites

      1. Download the attached MDL-69012-test.xml file, which contains sample quiz questions in various formats.
      2. Have a test Moodle site with English (en) and _עברי ‎(he)‎_ (Hebrew) language packs installed.
      3. Have a course with at least one teacher and one student enrolled.
      4. Clear all site caches.

      Setup

      1. Log in as a teacher and navigate to a course.
      2. Add a new quiz activity called "Layout test quiz". Set the layout to new page "Never, all questions on one page" and then click "Save and display" (the rest of the settings should be left as default).
      3. Click the "actions menu" cog and under "Question bank", select "Import".
      4. On the import screen, select "Moodle XML format" file format, then in the file picker choose "Upload a file" and select the MDL-69012-test.xml file you downloaded in step 1 of the Prerequisites.
      5. Press "Upload this file", then press "Import".
      6. CONFIRM you see 4 questions being imported, then press "Continue".
      7. Return to the "Layout test quiz" and press "Edit quiz".
      8. Click the "Add" dropdown, and select "from question bank".
      9. Select the category "MDL-69012 (4)", tick all 4 questions, then press "Add selected questions to the quiz".
      10. CONFIRM you now have 4 questions in the "Layout test quiz".

      Test 1 - LTR

      1. Log in as the student and navigate to the Layout test quiz.
      2. Press "Attempt quiz now".
      3. Complete the quiz by choosing all answers that do not say "incorrect" or "Don't choose it". Select all of the available options for the flags question.
      4. Press "Finish attempt ...", then "Submit all and finish" (both times you are prompted).
      5. Scroll through each of the questions and CONFIRM that in the answer/feedback section below the questions, the relevant answers to the below questions are displayed as follows (on the line below "Your answer is correct."):
        • The answers to this quiz have the default formatting for English (LTR). Select the ones that say they are correct:

          The correct answers are: This is choice 1 (choose it), This is choice 3 (choose it)

          (All on one line)

        • This question uses paragraph formatting with no direction (ala 3.8 and previous):

          The correct answers are: First answer old style (correct), This is a تست text (correct), This is also correct

          (All on one line)

        • This question is written with Hebrew (RTL) set.:

          The correct answers are: text one تست This is a, text تست This is a correct

          (All on one line)

        • Which of the following flags belong to countries in the Commonwealth?:
          All 3 flags displayed comma separated. If the browser window width is made wide enough, they will be displayed on a single line, otherwise one or more flags will wrap onto their own line.

      Test 2 - RTL

      1. While still on the quiz review page, find the language dropdown in the top navbar of the page, and change it from English (en) to Hebrew (this will trigger a page reload).
      2. When the page has finished reloading, re-check all of the questions are still using a similar single-line answer layout, but are now adhering to RTL formatting (so the order of the list of answers will now be flipped), as per the examples below (on the line below ".Your answer is correct"). Pay close attention to the "This question is written with Hebrew (RTL) set" question, as it is now being shown in the original format it was written in, and the order of the words should be identical:
        • The answers to this quiz have the default formatting for English (LTR). Select the ones that say they are correct:

          This is choice 3 (choose it) ,This is choice 1 (choose it) :התשובות הנכונות הן

          (All on one line)

        • This question uses paragraph formatting with no direction (ala 3.8 and previous):

          This is also correct ,text (correct) تست This is a, First answer old style (correct) :התשובות הנכונות הן

          (All on one line)

        • This question is written with Hebrew (RTL) set.:

          text تست This is a correct ,text one تست This is a :התשובות הנכונות הן

          (All on one line)

        • Which of the following flags belong to countries in the Commonwealth?:
          All 3 flags displayed comma separated. If the browser window width is made wide enough, they will be displayed on a single line, otherwise one or more flags will wrap onto their own line (but this time, wrap to the right instead of to the left).
      Show
      Prerequisites Download the attached MDL-69012 -test.xml file, which contains sample quiz questions in various formats. Have a test Moodle site with English (en) and _עברי ‎(he)‎_ (Hebrew) language packs installed. Have a course with at least one teacher and one student enrolled. Clear all site caches. Setup Log in as a teacher and navigate to a course. Add a new quiz activity called "Layout test quiz". Set the layout to new page "Never, all questions on one page" and then click "Save and display" (the rest of the settings should be left as default). Click the "actions menu" cog and under "Question bank", select "Import". On the import screen, select "Moodle XML format" file format, then in the file picker choose "Upload a file" and select the MDL-69012 -test.xml file you downloaded in step 1 of the Prerequisites. Press "Upload this file", then press "Import". CONFIRM you see 4 questions being imported, then press "Continue". Return to the "Layout test quiz" and press "Edit quiz". Click the "Add" dropdown, and select "from question bank". Select the category " MDL-69012 (4)", tick all 4 questions, then press "Add selected questions to the quiz". CONFIRM you now have 4 questions in the "Layout test quiz". Test 1 - LTR Log in as the student and navigate to the Layout test quiz. Press "Attempt quiz now". Complete the quiz by choosing all answers that do not say "incorrect" or "Don't choose it". Select all of the available options for the flags question. Press "Finish attempt ...", then "Submit all and finish" (both times you are prompted). Scroll through each of the questions and CONFIRM that in the answer/feedback section below the questions, the relevant answers to the below questions are displayed as follows (on the line below "Your answer is correct."): The answers to this quiz have the default formatting for English (LTR). Select the ones that say they are correct : The correct answers are: This is choice 1 (choose it), This is choice 3 (choose it) (All on one line) This question uses paragraph formatting with no direction (ala 3.8 and previous) : The correct answers are: First answer old style (correct), This is a تست text (correct), This is also correct (All on one line) This question is written with Hebrew (RTL) set. : The correct answers are: text one تست This is a, text تست This is a correct (All on one line) Which of the following flags belong to countries in the Commonwealth? : All 3 flags displayed comma separated. If the browser window width is made wide enough, they will be displayed on a single line, otherwise one or more flags will wrap onto their own line. Test 2 - RTL While still on the quiz review page, find the language dropdown in the top navbar of the page, and change it from English (en) to Hebrew (this will trigger a page reload). When the page has finished reloading, re-check all of the questions are still using a similar single-line answer layout, but are now adhering to RTL formatting (so the order of the list of answers will now be flipped), as per the examples below (on the line below ".Your answer is correct"). Pay close attention to the "This question is written with Hebrew (RTL) set" question, as it is now being shown in the original format it was written in, and the order of the words should be identical: The answers to this quiz have the default formatting for English (LTR). Select the ones that say they are correct : This is choice 3 (choose it) ,This is choice 1 (choose it) :התשובות הנכונות הן (All on one line) This question uses paragraph formatting with no direction (ala 3.8 and previous) : This is also correct ,text (correct) تست This is a, First answer old style (correct) :התשובות הנכונות הן (All on one line) This question is written with Hebrew (RTL) set. : text تست This is a correct ,text one تست This is a :התשובות הנכונות הן (All on one line) Which of the following flags belong to countries in the Commonwealth? : All 3 flags displayed comma separated. If the browser window width is made wide enough, they will be displayed on a single line, otherwise one or more flags will wrap onto their own line (but this time, wrap to the right instead of to the left).
    • 1
    • International 4.0 - Sprint 1, International 4.0 - Sprint 2, International 4.0 - Sprint 3, International 4.0 - Sprint 4

      As reported by mina in MDLQA-14280, multiple choice correct answers are not positioned correctly. The problem only affects newly created multiple choice questions in 3.9, and not existing questions.

      Steps to reproduce:

      1. Go to the question bank in a course and create a multiple choice question
      2. Complete the required fields and answers and select multiple answers allowed
      3. Save changes then preview the question
      4. Attempt the question then click Submit and finish

      Expected result: The correct answers are on the same line as the text 'The correct answers are:'

      Actual result: The correct answers are listed below the text 'The correct answers are:'

            Votes:
            0 Vote for this issue
            Watchers:
            19 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 days, 7 hours, 18 minutes
                3d 7h 18m

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