-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
3.3.3
-
None
-
3.3
-
MOODLE_33_STABLE
when I tried to drag and drop the activity in course it failed so I found out there were bugs in the javascript of the sharing cart block so I upgrade it to 3.3 and when I enter the course again It show a bug in the query on controller.php
|
$records = $DB->get_records_sql(
|
"SELECT
|
{block_sharing_cart}.*,
|
`fullname` AS 'coursefullname' |
FROM {block_sharing_cart}
|
LEFT JOIN {course}
|
ON {block_sharing_cart}.`course` = {course}.`id`
|
WHERE `userid` = ?", array($USER->id));
|
replace it with :
$records = $DB->get_records_sql(
|
"SELECT
|
{block_sharing_cart}.*,
|
fullname AS coursefullname
|
FROM {block_sharing_cart}
|
LEFT JOIN {course}
|
ON {block_sharing_cart}.course = {course}.id
|
WHERE userid = ?", array($USER->id));
|