Currently load_for_user is looking for the course id as a parameter when loading setting for the user context.
Really it should first be looking to see if $PAGE->course has been set first, and then failing over to the HTTP params.
Currently load_for_user is looking for the course id as a parameter when loading setting for the user context.
Really it should first be looking to see if $PAGE->course has been set first, and then failing over to the HTTP params.