mirror of
https://github.com/moodle/moodle.git
synced 2025-04-16 14:02:32 +02:00
MDL-21190 Re-fixing a regression in dependency calculation
Sorry for the last commit. This should be the proper way. The problem was with the question mark within quotes - it was not considered as a placeholder.
This commit is contained in:
parent
8b9f980a2b
commit
1b6ab8924f
@ -1331,7 +1331,7 @@ class grade_item extends grade_object {
|
||||
|
||||
if ($grade_category->aggregatesubcats) {
|
||||
// return all children excluding category items
|
||||
$params[] = $grade_category->id;
|
||||
$params[] = '%/' . $grade_category->id . '/%';
|
||||
$sql = "SELECT gi.id
|
||||
FROM {grade_items} gi
|
||||
WHERE $gtypes
|
||||
@ -1339,8 +1339,7 @@ class grade_item extends grade_object {
|
||||
AND gi.categoryid IN (
|
||||
SELECT gc.id
|
||||
FROM {grade_categories} gc
|
||||
WHERE gc.path LIKE '%/?/%')";
|
||||
|
||||
WHERE gc.path LIKE ?)";
|
||||
} else {
|
||||
$params[] = $grade_category->id;
|
||||
$params[] = $grade_category->id;
|
||||
|
Loading…
x
Reference in New Issue
Block a user