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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.3
    • 3.2
    • Module: Scheduler
    • None
    • 3.1.0
    • Hide

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

      Show
      Select one or more slots before clicking "Delete selected slots".
    • MOODLE_32_STABLE
    • MOODLE_33_STABLE

      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()

            bostelm Henning Bostelmann
            bostelm Henning Bostelmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.