Details
-
Type:
Task
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.9.2
-
Fix Version/s: 3.1
-
Component/s: Web Services
-
Testing Instructions:
- Run lib/tests/externallib_test.php
-
Affected Branches:MOODLE_29_STABLE
-
Fixed Branches:MOODLE_31_STABLE
-
Pull from Repository:
-
Pull Master Branch:
MDL-51664-master -
Pull Master Diff URL:
Description
There are external functions in which we retrieve the list of courses a user has access to, and the we call validate_courses which fetches the course again. We should pass an array of prefetched courses to validate_courses to prevent unnecessary double fetching.