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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.7.5, 1.8.6, 1.9.2
    • 1.9.1
    • Quiz
    • None
    • MOODLE_19_STABLE
    • MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE

      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.

            timhunt Tim Hunt
            timhunt Tim Hunt
            Jérôme Mouneyrac Jérôme Mouneyrac
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

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