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

In cloze type question, when you hover the mouse over an incorrect answer, you get feedback. The feedback is not formatted correctly and extends off the screen.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.1
    • Fix Version/s: 2.4.6, 2.5.2
    • Component/s: Quiz
    • Labels:
    • Testing Instructions:
      Hide

      Should be tested on multiple variations of browser, including IE/FF/Chrome:
      1. Test one or more multi-answer (Cloze) questions. At least one of your test questions should have lots of feedback for each subquestion, e.g.:

      Match the following cities with the correct state:
      * San Francisco: {1:MULTICHOICE:=California#OK~Arizona#Bresaola brisket sirloin, short ribs meatloaf turducken doner rump. Pork ham turkey, bacon pastrami kielbasa short loin salami jerky fatback spare ribs pancetta prosciutto. Ribeye biltong pastrami drumstick, sirloin tri-tip prosciutto flank fatback tenderloin swine cow. Filet mignon swine flank, capicola doner biltong pork chop t-bone short ribs short loin venison jerky tail. Rump bacon boudin, ball tip pork chop ham frankfurter shankle short ribs tri-tip prosciutto drumstick ground round tail. Shoulder beef ribs pork belly andouille brisket spare ribs jerky tenderloin ribeye sirloin ground round strip steak drumstick chicken frankfurter.}
      

      2. Preview the question from the question bank. Make sure the display feedback option is turned on. Answer the question, and make sure you can see all the feedback when hovering over the answer.

      3. Add the question(s) to a quiz, and attempt it. Make sure you can see all the feedback.

      Show
      Should be tested on multiple variations of browser, including IE/FF/Chrome: 1. Test one or more multi-answer (Cloze) questions. At least one of your test questions should have lots of feedback for each subquestion, e.g.: Match the following cities with the correct state: * San Francisco: {1:MULTICHOICE:=California#OK~Arizona#Bresaola brisket sirloin, short ribs meatloaf turducken doner rump. Pork ham turkey, bacon pastrami kielbasa short loin salami jerky fatback spare ribs pancetta prosciutto. Ribeye biltong pastrami drumstick, sirloin tri-tip prosciutto flank fatback tenderloin swine cow. Filet mignon swine flank, capicola doner biltong pork chop t-bone short ribs short loin venison jerky tail. Rump bacon boudin, ball tip pork chop ham frankfurter shankle short ribs tri-tip prosciutto drumstick ground round tail. Shoulder beef ribs pork belly andouille brisket spare ribs jerky tenderloin ribeye sirloin ground round strip steak drumstick chicken frankfurter.} 2. Preview the question from the question bank. Make sure the display feedback option is turned on. Answer the question, and make sure you can see all the feedback when hovering over the answer. 3. Add the question(s) to a quiz, and attempt it. Make sure you can see all the feedback.
    • Affected Branches:
      MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_24_STABLE, MOODLE_25_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      When you preview a cloze type question and submit an incorrect answer, you can see the feedback by hovering the mouse over the cloze blank. However, the feedback is not formatted correctly and the ends of the text go off the screen. While it may work fine for short feedback, if a teacher wants to give a more detailed explanation it doesn't work. For example, here is the incorrect feedback "The </em>-s</em> at the end of 'Hanako's sisters' means there are more than one. When there is more than one person, the choices for pronouns are <em>you</em>, <em>we</em> and <em>they</em>. Which do you use in this case?" You can only see the whole message if you have a really wide screen.

      XML code for question:
      <question type='cloze'><name><text>Hanako's sisters go to school by bus. </text>
      </name>
      <questiontext>
      <text><![CDATA[<span lang='en' class='multilang'>Replace the subject with a pronoun. <br><span class='example_word'>Example) Mrs. Smith likes cake. → She likes cake. </span></span><span lang='ja' class='multilang'>主語を代名詞で置き換えましょう。<br><span class='example_word'>例)Mrs. Smith likes cake. → She likes cake.</span></span><br><div class='question_theme'>Hanako's sisters go to school by bus. <strong>→</strong>

      {1:SHORTANSWER:=They#<span lang='en' class='multilang'>That's right!</span><span lang='ja' class='multilang'>よくできました!</span>~%0%*#<span lang='en' class='multilang'>The </em>-s</em> at the end of 'Hanako's sisters' means there are more than one. When there is more than one person, the choices for pronouns are <em>you</em>, <em>we</em> and <em>they</em>. Which do you use in this case?</span><span lang='ja' class='multilang'><em>Hanako's sisters</em> の最後にある -s は「二人以上」を意味します。 主語が二人以上の時は <em>you</em>, <em>we</em> または <em>they</em>で表します。さてこの場合はどれでしょう?</span>}

      go to school by bus. <br><a class='toggle-image-and-text'><span class='Japanese_flag_icon_open'></span><span class='hide Japanese_flag_icon_close'>花子の姉たちはバスで学校に行きます。</span></a></div>]]></text>
      </questiontext>
      <generalfeedback format='html'>
      <text><![CDATA[]]></text>
      </generalfeedback><usecase>1</usecase></question>

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              timhunt Tim Hunt
              Reporter:
              andy@fun Andrew Johnson
              Peer reviewer:
              Sam Marshall
              Integrator:
              Dan Poltawski
              Tester:
              Jason Fowler
              Participants:
              Component watchers:
              Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                9/Sep/13