Affects Version/s: 1.8.2
Fix Version/s: None
Environment:Does not matter
When both a course fee and an enrolment key is specified, an enrolling student is supposed to able to enrol either by paying the fee or by entering the enrolment key.
However, the input field for the enrolment key is not shown on the page /course/enrol.php. Only the paypal option is presented to the prospective student.
In /enrol/manual/enrol.html there is a function call $this->print_enrolmentkeyfrom( $course );
$this, however, refers to an enrolment_plugin_paypal object (and not to an enrolmant_plugin_manual object) because /enrol/manual/enrol.html is included by enrolment_plugin_paypal::print_entry($course)
Work around: In /enrol/manual/enrol.html on line 7 replace
$this->print_enrolmentkeyfrom( $course );
enrolment_plugin_manual::print_enrolmentkeyfrom( $course );
As far as I know, this bug is still present in Moodle 1.8.4 and 1.9