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

Lesson module does not handle calendar events consistently

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.5, 3.1
    • Fix Version/s: 3.0.7, 3.1.3
    • Component/s: Lesson
    • Labels:
    • Testing Instructions:
      Hide

      With your site set to debug developer / display debugging messages:

      1. Create a lesson activity that spans 2 days
      2. View the course calendar and verify that a single calendar event was created.
      3. Re-name the lesson activity using the in-place editing (the pencil icon from the course page)
      4. View the course calendar and verify that a calendar event was updated and only a single calendar event is displayed.
      5. Re-name the lesson activity by editing the lesson activity (by using the edit settings link)
      6. View the course calendar and verify that a calendar event was updated and only a single calendar event is displayed.
      7. Check your PHP error logs and make sure that the error "Use of undefined constant LESSON_MAX_EVENT_LENGTH" is not present
      Show
      With your site set to debug developer / display debugging messages: Create a lesson activity that spans 2 days View the course calendar and verify that a single calendar event was created. Re-name the lesson activity using the in-place editing (the pencil icon from the course page) View the course calendar and verify that a calendar event was updated and only a single calendar event is displayed. Re-name the lesson activity by editing the lesson activity (by using the edit settings link) View the course calendar and verify that a calendar event was updated and only a single calendar event is displayed. Check your PHP error logs and make sure that the error "Use of undefined constant LESSON_MAX_EVENT_LENGTH" is not present
    • Affected Branches:
      MOODLE_30_STABLE, MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_30_STABLE, MOODLE_31_STABLE
    • Pull Master Branch:
      MDL-55883_m32v1

      Description

      When you create a lesson module with an open and end date it creates one event that spans the whole time period (both days and days in-between included), but when you rename it creates two separate events for the open and end date.

        Attachments

          Activity

            People

            Assignee:
            sbourget Stephen Bourget
            Reporter:
            markn Mark Nelson
            Peer reviewer:
            Mark Nelson
            Integrator:
            Andrew Nicols
            Tester:
            Jun Pataleta
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              14/Nov/16