Moodle

Apostrophe problem in short answer questions

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 1.6
  • Fix Version/s: 1.6.2, 1.7
  • Component/s: Questions
  • Labels:
    None
  • Affected Branches:
    MOODLE_16_STABLE
  • Fixed Branches:
    MOODLE_16_STABLE, MOODLE_17_STABLE

Description

Question type = short answer. Expected student answer contains an apostrophe.
If student types expected answer correctly, when pressing Submit, the apostrophe is escaped; however, the answer is considered correct. When student further submits page, the apostrophe is again escaped, resulting in 3 backslashes added, and ... the answer is considered Incorrect.

Joseph

Activity

Hide
Joseph Rézeau added a comment -

The issue is indeed solved for the SHORTANSWER question type. Thanks.
Unfortunately the problem persists in a SHORTANSWER which is embedded in a CLOZE question, e.g.

Rewrite "the book of John" using a genitive {1:SHORTANSWER:~%100%John's book#ok}

When student enters "John's book", the displayed output is "John\'s book", with an added unwanted backslash. And each subsequent click on the Submit page button adds more backslashes...

Show
Joseph Rézeau added a comment - The issue is indeed solved for the SHORTANSWER question type. Thanks. Unfortunately the problem persists in a SHORTANSWER which is embedded in a CLOZE question, e.g. Rewrite "the book of John" using a genitive {1:SHORTANSWER:~%100%John's book#ok} When student enters "John's book", the displayed output is "John\'s book", with an added unwanted backslash. And each subsequent click on the Submit page button adds more backslashes...
Hide
Tim Hunt added a comment -

If there are problems in CLOSE, then that is a separate bug. This report describes a problem with shortanswer that was entirely self-contained, and I fixed.

Let us keep it to one bug report per issue, so please can you create a new bug report for the CLOZE issue. Thanks, Tim.

Show
Tim Hunt added a comment - If there are problems in CLOSE, then that is a separate bug. This report describes a problem with shortanswer that was entirely self-contained, and I fixed. Let us keep it to one bug report per issue, so please can you create a new bug report for the CLOZE issue. Thanks, Tim.
Hide
Joseph Rézeau added a comment -

OK, Tim, I've opened new bug MDL-6386

Joseph

Show
Joseph Rézeau added a comment - OK, Tim, I've opened new bug MDL-6386 Joseph
Hide
Nicolas Martignoni added a comment -

Works for short answer questions, closing

Show
Nicolas Martignoni added a comment - Works for short answer questions, closing

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: