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

Teacher sees error due to Show Activity Reports set to yes.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.5
    • Fix Version/s: 2.5.1, FRONTEND
    • Component/s: Course
    • Labels:
    • Testing Instructions:
      Hide
      1. Enable 'Show activity reports' (showreports) in a course
      2. Login as a teacher and navigate to the course
      3. Visit one of the students' course profile
      4. Make sure you don't see any notice for missing variable $forceforcontext
      5. Make sure you don't see the node Administration > Profile settings for ... > Activity reports > Grade
      6. Login as the student, and visit your own course profile
      7. Make sure you can see the node Administration > My profile settings > Activity reports > Grade
      Show
      Enable 'Show activity reports' (showreports) in a course Login as a teacher and navigate to the course Visit one of the students' course profile Make sure you don't see any notice for missing variable $forceforcontext Make sure you don't see the node Administration > Profile settings for ... > Activity reports > Grade Login as the student, and visit your own course profile Make sure you can see the node Administration > My profile settings > Activity reports > Grade
    • Affected Branches:
      MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-39979-master

      Description

      Restoring courses from a 2.4.3 site to a 2.5 site and viewing as a Teacher gives this error:

      Notice: Undefined variable: forceforcontext in /var/www/moodle/lib/navigationlib.php on line 4082

      https://tracker.moodle.org/browse/MDL-39917?focusedCommentId=225981&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-225981

        Attachments

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                8/Jul/13