- Joined
- Mar 8, 2022
- Messages
- 13
- Reaction score
- 6
Hello, i think to have spotted a bug in the Upgrade Coupon addon. When i had an upgrade active and clicked on buy again/renew i would get an error saying the page couldn't be found.
When checking the file:
Original code:
This doesn't make sense so i edited my code and was able to restore expected functionality.
My code:
Best regards
zordem
When checking the file:
src/addons/XenSoluce/UpgradeCoupons/Pub/Controller/UpgradeCoupons.php
i noticed that in line 49 there seems to be a bug.Original code:
Code:
if($upgrade->canRenew())
{
return $this->error(\XF::phrase('requested_page_not_found'));
}
This doesn't make sense so i edited my code and was able to restore expected functionality.
My code:
Code:
if(!$upgrade->canRenew())
{
return $this->error(\XF::phrase('requested_page_not_found'));
}
Best regards
zordem