Fix the creation of test paid subscriptions
authorAlexander Ebert <ebert@woltlab.com>
Mon, 2 Oct 2023 13:30:35 +0000 (15:30 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 2 Oct 2023 13:30:35 +0000 (15:30 +0200)
See https://www.woltlab.com/community/thread/301865-test-notify-me-before-my-subscription-expires/

wcfsetup/install/files/lib/system/user/notification/event/ExpiringPaidSubscriptionUserUserNotificationEvent.class.php

index a9bc0009a01e9d6c2b55eb7d97db47d21a891b68..5e754fd352ff158c0dcabecb7039e2beb29833fe 100644 (file)
@@ -95,6 +95,7 @@ class ExpiringPaidSubscriptionUserUserNotificationEvent extends AbstractUserNoti
         /** @var PaidSubscription $paidSubscription */
         $paidSubscription = (new PaidSubscriptionAction([], 'create', [
             'data' => [
+                'groupIDs' => '',
                 'title' => 'Test Subscription',
             ],
         ]))->executeAction()['returnValues'];