-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
5.0
The query
$sql = "SELECT cm.id
|
FROM {course_modules} cm
|
JOIN {modules} m ON m.id = cm.module
|
JOIN {{$defaultyactivityname}} q ON q.id = cm.instance AND cm.module = m.id
|
WHERE cm.course = :course
|
AND q.type = :type";
|
|
isn't precise enough.
We experienced this query failing when using the qtype_coderunner.
As this query does not restrict by the module name, any other modules with an instance ID the same as that of a qbank will also have its cmid returned. For example, if a qbank has ID 10 and there is also a wiki with id 10, the wiki will also be incorrectly matched.
- Testing discovered
-
MDL-84846 Make "A lock was created but not released at:" more helpful
-
- Closed
-