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

error in forum ratings

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.0
    • Fix Version/s: None
    • Component/s: Forum
    • Labels:

      Description

      When add or configure a forum in a course where select diferent option in "Aggregate type" (Ratings), this forum show error "Invalid context".

      Debugin show:
      Notice: Undefined property: stdClass::$context in /.../mod/forum/lib.php on line 5321
      Notice: Trying to get property of non-object in /.../rating/lib.php on line 297

      In function get_ratings (defined in file rating/lib.php) can look that the context get to $PAGE->context, not from $options->context; ¿this is the error?

        Attachments

          Activity

            People

            • Assignee:
              andyjdavis Andrew Davis
              Reporter:
              zap Alexander
              Participants:
              Component watchers:
              Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: