Moodle

Editing a locked grade_item's settings gives fatal error

Details

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

Description

Lock a grade_item in the grader report, then try to edit its settings. I get this:

( ! ) Notice: Undefined property: grade_grade::$feedback in D:\VertrigoServ\www\moodle_head\grade\edit\tree\grade.php on line 146
Call Stack

  1. Time Memory Function Location
    1 0.0267 171056 {main}( ) ..(null):0

    ( ! ) Notice: Undefined property: grade_grade::$feedbackformat in D:\VertrigoServ\www\moodle_head\grade\edit\tree\grade.php on line 147
    Call Stack
    # Time Memory Function Location
    1 0.0267 171056 {main}( ) ..(null):0

( ! ) Fatal error: Call to undefined method stdClass::set_hidden() in D:\VertrigoServ\www\moodle_head\grade\edit\tree\grade.php on line 169
Call Stack

  1. Time Memory Function Location
    1 0.0267 171056 {main}( ) ..(null):0

Activity

Hide
Nicolas Connault added a comment -

This page should have its own unittests, these errors would have been caught much earlier...

Show
Nicolas Connault added a comment - This page should have its own unittests, these errors would have been caught much earlier...

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: