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

Shortanswer resonses should be trimmed before being saved in the database

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8.2
    • Fix Version/s: 1.8.3, 1.9
    • Component/s: Questions
    • Labels:
      None
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE

      Description

      Shortanswer questions are marked with leading and trailing whitespace stripped off. Therefore, student reposes should be trimmed before they are stored in the database.

      We had a student express concern because they seemed to have been marked right for a question they had left blank. In fact, they must have leant on their keyboard, because their answer was hundreds of spaces, then the right answer, so the answer box appeared blank. This is too confusing.

        Attachments

          Activity

            People

            Assignee:
            timhunt Tim Hunt
            Reporter:
            timhunt Tim Hunt
            Tester:
            Nobody
            Participants:
            Component watchers:
            Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              11/Oct/07