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

Changing a course event to a user event results in an error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.4.4, 3.5.1, 3.6
    • Fix Version/s: None
    • Component/s: Calendar
    • Labels:
    • Testing Instructions:
      Hide
      Setup

      You'll need a course with a couple of groups.

      Testing
      1. Log in as admin and go to calendar.
      2. Click New event button and create a group event.
      3. On the month view, change the course filter to the course you created the group event for.
      4. Click on the event title to open the summary.
      5. Edit the event, change the Type of event to User and save.
      6. On the month view, change the course filter to All courses
      7. Click on the event title and make sure the event type is now User.
      8. Edit the event, change the Type of event to Group, select a course and group and save.
      9. On the month view, change the course filter to the course you created the group event for.
      10. Click on the event title and make sure the event type is now Group.
      11. Make sure the group and course information is correct.
      Show
      Setup You'll need a course with a couple of groups. Testing Log in as admin and go to calendar. Click New event button and create a group event. On the month view, change the course filter to the course you created the group event for. Click on the event title to open the summary. Edit the event, change the Type of event to User and save. On the month view, change the course filter to All courses Click on the event title and make sure the event type is now User . Edit the event, change the Type of event to Group , select a course and group and save. On the month view, change the course filter to the course you created the group event for. Click on the event title and make sure the event type is now Group . Make sure the group and course information is correct.
    • Affected Branches:
      MOODLE_34_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE
    • Pull from Repository:
    • Pull 3.5 Branch:
    • Pull Master Branch:
      MDL-62959-master

      Description

      1. Create a Group event
      2. Edit the event
      3. Change it to a "User" event
      4. Press "Save"

      SELECT id,category FROM {course} WHERE id = ?
      [array (
        0 => '0',
      )]
      Error code: invalidrecord
      * line 1546 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
      * line 1522 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
      * line 6556 of /lib/accesslib.php: call to moodle_database->get_record()
      * line 304 of /calendar/classes/external/event_exporter_base.php: call to context_course::instance()
      * line 69 of /calendar/classes/external/event_exporter.php: call to core_calendar\external\event_exporter_base->get_other_values()
      * line 125 of /lib/classes/external/exporter.php: call to core_calendar\external\event_exporter->get_other_values()
      * line 948 of /calendar/externallib.php: call to core\external\exporter->export()
      * line 228 of /lib/externallib.php: call to core_calendar_external::submit_create_update_form()
      * line 59 of /lib/ajax/service.php: call to external_api::call_external_function()
      * 

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              lameze Simey Lameze
              Reporter:
              dobedobedoh Andrew Nicols
              Integrator:
              Eloy Lafuente (stronk7)
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              8 Vote for this issue
              Watchers:
              13 Start watching this issue

                Dates

                Created:
                Updated: