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

Cannot delete questions from question bank

    XMLWordPrintable

    Details

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

      Description

      Responding "Yes" to the question deletion confirmation dialog returns you to the question bank page without deleting the question because $USER is not defined on line 480 of question/editlib.php.

      To fix:

      Index: question/editlib.php
      ===================================================================
      RCS file: /cvsroot/moodle/moodle/question/editlib.php,v
      retrieving revision 1.68
      diff -r1.68 editlib.php
      404c404
      < global $COURSE;

      > global $COURSE, $USER;

        Attachments

          Activity

            People

            Assignee:
            timhunt Tim Hunt
            Reporter:
            adrianeboyd Adriane Boyd
            Tester:
            Nobody
            Participants:
            Component watchers:
            Tim Hunt, Andrew Nicols, Dongsheng Cai, Huong Nguyen, 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:
              3/Mar/08