Moodle

Cannot delete questions from question bank

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor 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;

Activity

Hide
Tim Hunt added a comment -

Thanks Adriane. Fix checked in.

Show
Tim Hunt added a comment - Thanks Adriane. Fix checked in.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: