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

apostrophe not recognized in lesson shortanswer question

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0, 2.1
    • Fix Version/s: 2.0.4
    • Component/s: Lesson
    • Labels:
    • Testing Instructions:
      Hide

      1. Create a lesson activity
      2. Add short answer type question.
      3. Put answer as "

      {<It work's well! :)>}

      ". Try use all html special chars to make sure answer is compared for all.

      Show
      1. Create a lesson activity 2. Add short answer type question. 3. Put answer as " {<It work's well! :)>} ". Try use all html special chars to make sure answer is compared for all.
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE
    • Pull Master Branch:
      wip-mdl-26281-master

      Description

      apostrophe not recognized in lesson shortanswer question
      see http://moodle.org/mod/forum/discuss.php?d=168052

      easy fix:
      in file lesson/pagetypes/shortanswer.php
      around line 80
      replace:
      foreach ($answers as $answer) {
      $i++;
      $expectedanswer = $answer->answer; // for easier handling of $answer->answer

      with

      foreach ($answers as $answer) {
      $i++;
      $expectedanswer = s($answer->answer); // for easier handling of $answer->answer

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    1/Aug/11