Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.9.2
-
Fix Version/s: 1.9.7
-
Component/s: Enrolments
-
Labels:None
-
Affected Branches:MOODLE_19_STABLE
-
Fixed Branches:MOODLE_19_STABLE
Description
hi!
as i understand:
the setting "enrol_cost" in paypal-plugin should be used, if a course has no cost set.
but it doesn't.
the error is in enrol/paypal/enrol.php
where this is checked on line 25 and 95:
if ( (float) $course->cost < 0)
// use default cost
else
// use course cost
but if i add a course it has the cost of 0.
so the solution is to change the if-statement to check for less or equal than 0:
if ( (float) $course->cost <= 0)
regards, daniel.
Activity
- All
- Comments
- History
- Activity
- Source
- Test Sessions
Thanks Daniel, I've fixed this in CVS