Details
-
Type:
Improvement
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.7
-
Fix Version/s: 2.8
-
Component/s: Forum
-
Testing Instructions:
- Run unit tests
- Run forum behat tests
-
Affected Branches:MOODLE_27_STABLE
-
Fixed Branches:MOODLE_28_STABLE
-
Pull from Repository:
-
Pull Master Branch:
MDL-47107-master -
Pull Master Diff URL:
Description
This function calls for the course module and context values, but those values usually already exist in the page calling the function, so I suggest adding them to the function call to reduce unnecessary DB queries for data that we already have. Only when the variables are empty the function will populate them.