center-for-learning-management / moodle-local_edusupport

Plugin to manage a moodle based helpdesk
GNU General Public License v3.0
4 stars 3 forks source link

opening report problem from support forum #15

Closed lassnj closed 4 years ago

lassnj commented 4 years ago

when clicking report problem inside a helpdesk forum the following error occurs:

SELECT cm.*, m.name, md.name AS modname 
              FROM {course_modules} cm
                   JOIN {modules} md ON md.id = cm.module
                   JOIN {forum} m ON m.id = cm.instance

             WHERE cm.id = :cmid AND md.name = :modulename

[array (
  'cmid' => '96',
  'modulename' => 'forum',
)]
Error code: invalidrecordunknown
* line 1627 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
* line 1230 of /lib/datalib.php: call to moodle_database->get_record_sql()
* line 294 of /local/edusupport/classes/lib.php: call to get_coursemodule_from_id()
* line 68 of /local/edusupport/classes/issue_create_form.php: call to local_edusupport\lib::get_potentialtargets()
* line 214 of /lib/formslib.php: call to issue_create_form->definition()
* line 323 of /local/edusupport/externallib.php: call to moodleform->__construct()
* line 255 of /lib/externallib.php: call to local_edusupport_external::create_form()
* line 81 of /lib/ajax/service.php: call to external_api::call_external_function()

Url: Logged in as Peter Schüler

lassnj commented 4 years ago

Problem occurs everywhere

rschrenk commented 4 years ago

yes, as I was working on #12 solved by now.