Issue Details (XML | Word | Printable)

Key: MDL-14928
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Tim Hunt
Reporter: Tim Hunt
Votes: 0
Watchers: 0
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

Adding random questions from a category with an apostrophe in the name does not work

Created: 21/May/08 12:48 AM   Updated: 08/Jul/08 02:37 PM
Return to search
Component/s: Quiz
Affects Version/s: 1.9.1
Fix Version/s: 1.7.5, 1.8.6, 1.9.2

Issue Links:
Blockers
 

Participants: Jerome Mouneyrac and Tim Hunt
Security Level: None
QA Assignee: Jerome Mouneyrac
Resolved date: 21/May/08
Affected Branches: MOODLE_19_STABLE
Fixed Branches: MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE


 Description  « Hide
http://moodle.org/mod/forum/discuss.php?d=65204

Joseph Rézeau suggests the fix:

Solution: In file moodle/mod/quiz/edit.php, towards line 185, replace:

$form->name = get_string('random', 'quiz') .' ('. $category->name .')';

with

$form->name = get_string('random', 'quiz') .' ('. addslashes($category->name) .')';

which is right. I'll apply it.

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Jerome Mouneyrac added a comment - 08/Jul/08 02:37 PM
Can add a random short answer question to a quizz in HEAD, 1.9, 1.8 and 1.7. It works fine, Thanks Tim.