sebsoftnl / moodle-enrol_gwpayments

Other
2 stars 3 forks source link

Error when deleting coupon #13

Closed papahepcat closed 1 month ago

papahepcat commented 2 years ago

When I try to delete a coupon, I get the following errors: Notice: Trying to get property 'courseid' of non-object in /<>/enrol/gwpayments/classes/local/coupons/coupondelete.php on line 53

Warning: Creating default object from empty value in /<>/enrol/gwpayments/classes/local/coupons/coupondelete.php on line 56

Notice: Undefined property: stdClass::$validfrom in /<>/enrol/gwpayments/classes/local/coupons/coupondelete.php on line 58

Notice: Undefined property: stdClass::$validto in /<>/enrol/gwpayments/classes/local/coupons/coupondelete.php on line 59

Then a message that the coupon has been deleted. But the coupon remains

rogiervandongen commented 1 month ago

@papahepcat Is/will be fixed in next release.