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

Section availability cache not set on initial course creation

    XMLWordPrintable

    Details

      Description

      Seems we haven't caught them

      Notice: Undefined property: stdClass::$availableinfo in /Users/danp/git/moodle/course/format/renderer.php on line 294 Call Stack: 0.0025 777720 1.

      {main}

      () /Users/danp/git/moodle/course/view.php:0 0.9525 66767208 2. require('/Users/danp/git/moodle/course/format/weeks/format.php') /Users/danp/git/moodle/course/view.php:245 0.9548 67077768 3. format_section_renderer_base->print_multiple_section_page() /Users/danp/git/moodle/course/format/weeks/format.php:45 1.0567 74009296 4. format_section_renderer_base->section_header() /Users/danp/git/moodle/course/format/renderer.php:575 1.0601 74018880 5. format_section_renderer_base->section_availability_message() /Users/danp/git/moodle/course/format/renderer.php:165

      Replication steps:

      1. Create a new course
      2. Visit course page

      On initial visit there are warnings about missing availableinfo

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              quen Sam Marshall
              Reporter:
              poltawski Dan Poltawski
              Integrator:
              Dan Poltawski
              Tester:
              Dan Poltawski
              Participants:
              Component watchers:
              Sam Marshall, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                25/Jun/12