|
|
|
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
|
|
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
|
Show » |
made changes - 24/Aug/06 01:31 AM
| Field |
Original Value |
New Value |
|
Assignee
|
Martin Dougiamas
[ dougiamas
]
|
Tim Hunt
[ timhunt
]
|
made changes - 24/Aug/06 01:31 AM
|
Status
|
Open
[ 1
]
|
In Progress
[ 3
]
|
tjhunt committed 1 file to 'Moodle CVS' - 24/Aug/06 03:04 AM
MDL-6338 - Short answer questions with ' in the answer don't work. Merged from MOODLE_16_STABLE.
Yet another unpleasant quiz bug caused by the current broken way we do things with addslashes.
|
|
|
made changes - 24/Aug/06 03:05 AM
|
Status
|
In Progress
[ 3
]
|
Resolved
[ 5
]
|
|
Fix Version/s
|
|
1.7
[ 10120
]
|
|
Fix Version/s
|
|
1.6.2
[ 10119
]
|
|
Resolution
|
|
Fixed
[ 1
]
|
made changes - 28/Aug/06 05:16 PM
|
Status
|
Resolved
[ 5
]
|
Reopened
[ 4
]
|
|
Resolution
|
Fixed
[ 1
]
|
|
made changes - 29/Aug/06 01:23 AM
|
Resolution
|
|
Fixed
[ 1
]
|
|
Status
|
Reopened
[ 4
]
|
Resolved
[ 5
]
|
made changes - 20/Sep/06 03:45 AM
|
Status
|
Resolved
[ 5
]
|
Closed
[ 6
]
|
|
QA Assignee
|
|
mina
|
|
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...