Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-6857

"Delete selected slots" leads to error when no slot has been selected

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.2
    • Fix Version/s: 3.3
    • Component/s: Module: Scheduler
    • Labels:
      None
    • Plugin Version:
      3.1.0
    • Workaround:
      Hide

      Select one or more slots before clicking "Delete selected slots".

      Show
      Select one or more slots before clicking "Delete selected slots".
    • Affected Branches:
      MOODLE_32_STABLE
    • Fixed Branches:
      MOODLE_33_STABLE

      Description

      Can not find data record in database table scheduler_slots.

      More information about this error
       
       
      in the teacher view, when clicking the "Delete selected slots" button without selecting a slot first, Scheduler reacts with the following error message.
       
      Debug info: SELECT * FROM {scheduler_slots} WHERE id = ? AND schedulerid = ?
      [array (
      0 => '',
      1 => '1',
      )]
      Error code: invalidrecord
       
      Stack trace:

      • line 1533 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
      • line 1509 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
      • line 508 of /mod/scheduler/model/scheduler_instance.php: call to moodle_database->get_record()
      • line 197 of /mod/scheduler/teacherview.controller.php: call to scheduler_instance->get_slot()
      • line 110 of /mod/scheduler/teacherview.php: call to include()
      • line 66 of /mod/scheduler/view.php: call to include()

        Attachments

          Activity

            People

            Assignee:
            bostelm Henning Bostelmann
            Reporter:
            bostelm Henning Bostelmann
            Participants:
            Component watchers:
            Valery Fremaux
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              15/May/17