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

apostrophe not recognized in lesson shortanswer question

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 2.0.4
    • 2.0, 2.1
    • Lesson
    • MOODLE_20_STABLE, MOODLE_21_STABLE
    • MOODLE_20_STABLE
    • wip-mdl-26281-master
    • Easy
    • 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.

      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

            rajeshtaneja Rajesh Taneja
            rezeau Joseph Rézeau
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Nobody Nobody
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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