- Affected version
- 2.0.4
Code:
/** @var \XF\Service\User\Downgrade $downgradeService */
$downgradeService = $this->service('XF:User\Downgrade', $activeUpgrade->Upgrade, $activeUpgrade->User);
$downgradeService->setSendAlert(false);
$downgradeService->downgrade();
Since there is no 3rd argument, the UserUpgradeActive record is not removed, just the changes for the upgrade record.