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

Veiwing a lesson before questions / pages are added results in an exception

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.9.2, 3.0.5, 3.1.1, 3.2
    • 3.0.6, 3.1.2
    • Lesson
    • 1
    • 3.2 Sprint 3

    Description

      When a student attempts to view a lesson activity prior to content / question pages being added, the lesson displays an exception to the student

      Steps to reproduce:
      1. As a teacher create a new lesson activity but do not add any pages to it
      2. As a student view the newly created lesson activity

      Expected result:
      Student should get a message indicating that the lesson is not ready to be attempted.

      Actual Result:

      Debug info:
      Error code: cannotfindfirstpage
      Stack trace:
      line 481 of /lib/setuplib.php: moodle_exception thrown
      line 284 of /mod/lesson/view.php: call to print_error()

      Attachments

        Issue Links

          Activity

            People

              abgreeve Adrian Greeve
              sbourget Stephen Bourget
              Jun Pataleta Jun Pataleta
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Frédéric Massart Frédéric Massart
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                12/Sep/16