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

Jumping to a random lesson page gives error on the first visit

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.1.5, 3.2.2, 3.3
    • 3.1.6, 3.2.3
    • Lesson
    • MOODLE_31_STABLE, MOODLE_32_STABLE, MOODLE_33_STABLE
    • MOODLE_31_STABLE, MOODLE_32_STABLE
    • MDL-58431-master
    • Hide
      • Create a lesson with several content pages
      • On the first page, define a jump to random content page
      • As a student, go that lesson for the first time (or after the lesson has been reset)
      • The jump to a random page should work
      Show
      Create a lesson with several content pages On the first page, define a jump to random content page As a student, go that lesson for the first time (or after the lesson has been reset) The jump to a random page should work

    Description

      I discovered this while testing MDL-57760. This seems to be related (or maybe a duplicate) of MDL-26671.

      Steps to reproduce

      1. Create a lesson with several content pages
      2. On the first page, define a jump to random content page
      3. As a student, go that lesson for the first time (or after the lesson has been reset)

      Expected behaviour: The jump to a random page should work

      Actual behaviour:

      Error: could not find lesson records
       
      Error code: cannotfindrecords
       
      line 496 of /lib/setuplib.php: moodle_exception thrown
      line 183 of /mod/lesson/locallib.php: call to print_error()
      line 201 of /mod/lesson/pagetypes/branchtable.php: call to lesson_unseen_branch_jump()
      line 3424 of /mod/lesson/locallib.php: call to lesson_page_type_branchtable->check_answer()
      line 2693 of /mod/lesson/locallib.php: call to lesson_page->record_attempt()
      line 70 of /mod/lesson/continue.php: call to lesson->process_page_responses()
      

      Attachments

        Issue Links

          Activity

            People

              jleyva Juan Leyva
              mudrd8mz David Mudrák (@mudrd8mz)
              Dani Palou Dani Palou
              Andrew Lyons Andrew Lyons
              John Okely John Okely
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                8/May/17