Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor 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.

        Gliffy Diagrams

          Activity

          Hide
          Dan Poltawski added a comment -

          Thanks Daniel, I've fixed this in CVS

          Show
          Dan Poltawski added a comment - Thanks Daniel, I've fixed this in CVS

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: