Moodle

Cannot edit default category details in course when only the default category exists

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.9
  • Fix Version/s: 1.9.4
  • Component/s: Questions
  • Labels:
    None
  • Environment:
    any
  • Database:
    MySQL
  • Affected Branches:
    MOODLE_19_STABLE
  • Fixed Branches:
    MOODLE_19_STABLE

Description

To recreate:

Go to questions
Categories tab
Click edit icon for the default category in the course
Save (with or without amending any details)
Error message "Cannot move the category 'Default for backup_1'. It is the last in this context."
Category info not changed.

Activity

Hide
Ray Lawrence added a comment -

Works as expected if another category is added prior to editing

Show
Ray Lawrence added a comment - Works as expected if another category is added prior to editing
Hide
Tim Hunt added a comment -

Have you got time to take a look at this Jamie?

Show
Tim Hunt added a comment - Have you got time to take a look at this Jamie?
Hide
Tim Hunt added a comment -

Ah, this is the bug I fixed, and then could not remember what I had done:

http://cvs.moodle.org/moodle/question/category_class.php?view=log#rev1.44
http://git.catalyst.net.nz/gitweb?p=moodle-r2.git;a=commitdiff;h=41c96651b5436a657f27b191e0df7d2f995d2068

Right, so this is fixed in HEAD, and I will backport it to 1.9 now.

Show
Tim Hunt added a comment - Ah, this is the bug I fixed, and then could not remember what I had done: http://cvs.moodle.org/moodle/question/category_class.php?view=log#rev1.44 http://git.catalyst.net.nz/gitweb?p=moodle-r2.git;a=commitdiff;h=41c96651b5436a657f27b191e0df7d2f995d2068 Right, so this is fixed in HEAD, and I will backport it to 1.9 now.
Hide
Tim Hunt added a comment -

Done!

Show
Tim Hunt added a comment - Done!
Hide
Sam Hemelryk added a comment -

Tested and all working well thanks Tim

Show
Sam Hemelryk added a comment - Tested and all working well thanks Tim

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: