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

Undefined variable pageid when viewing detailed statistics report tab on an empty lesson

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.3.3
    • Fix Version/s: 3.3.4, 3.4.1
    • Component/s: Lesson
    • Labels:
    • Testing Instructions:
      Hide
      1. Make sure developer mode is turned on (Site administration / Development / Debugging : Debug messages is set to DEVELOPER).
      2. Login as a teacher.
      3. Create a lesson in a course.
      4. Save and display.
      5. Go to Reports > Detailed statistics.
        • Confirm you don't see any undefined variable notice.
      Show
      Make sure developer mode is turned on (Site administration / Development / Debugging : Debug messages is set to DEVELOPER). Login as a teacher. Create a lesson in a course. Save and display. Go to Reports > Detailed statistics. Confirm you don't see any undefined variable notice.
    • Affected Branches:
      MOODLE_33_STABLE
    • Fixed Branches:
      MOODLE_33_STABLE, MOODLE_34_STABLE
    • Pull Master Branch:
      MDL-61042-master

      Description

      1. Create a lesson.
      2. Right after creation, go to Reports > Detailed statistics.
      3. On the Detailed statistics page, I see the following notice:

        Notice: Undefined variable: pageid in /home/jun/moodles/stable_master/moodle/mod/lesson/locallib.php on line 1066
         
        Notice: Undefined variable: pageid in /home/jun/moodles/stable_master/moodle/mod/lesson/locallib.php on line 1068
        

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                15/Jan/18