danielneis / moodle-availability_paypal

An Availability Condition for Moodle to require a PayPal payment to access activities and resources.
https://moodle.org/plugins/availability_paypal
GNU General Public License v3.0
11 stars 7 forks source link

Error code: no paypal condition for this context. #30

Closed smcpaiva closed 3 years ago

smcpaiva commented 3 years ago

Hi Daniel, how are you? The availability condition PayPal by "cohort" displays this error code: no paypal condition for this context. Error code: no paypal condition for this context. line 498 of /lib/setuplib.php: moodle_exception thrown line 56 of /availability/condition/paypal/view.php: call to print_error()

We use Moodle 3.9 and availability_paypal 2021030400

I appreciate your attention. Thank You!

smcpaiva commented 3 years ago

Hello again. The problem occurs when the condition PayPal is added within the "RESTRICTION GROUP", and is not related to the cohort.

danielneis commented 3 years ago

Hello, I've added a fix for when using restriction groups.