From: Matthias Schmidt Date: Fri, 2 Jun 2017 15:44:30 +0000 (+0200) Subject: Reset subscription length after saving subscription X-Git-Tag: 2.1.16~14 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=40276fd47f68013a42bd62eb3ecd416f6c5889c9;p=GitHub%2FWoltLab%2FWCF.git Reset subscription length after saving subscription --- diff --git a/wcfsetup/install/files/lib/acp/form/PaidSubscriptionAddForm.class.php b/wcfsetup/install/files/lib/acp/form/PaidSubscriptionAddForm.class.php index b3d36c1c07..e3446c799e 100644 --- a/wcfsetup/install/files/lib/acp/form/PaidSubscriptionAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/PaidSubscriptionAddForm.class.php @@ -260,7 +260,7 @@ class PaidSubscriptionAddForm extends AbstractForm { $this->objectAction = new PaidSubscriptionAction(array(), 'create', array('data' => array_merge($this->additionalFields, array( 'title' => $this->title, 'description' => $this->description, - 'isDisabled' => $this->isDisabled, + 'isDisabled' => $this->isDisabled, 'showOrder' => $this->showOrder, 'cost' => $this->cost, 'currency' => $this->currency, @@ -278,7 +278,7 @@ class PaidSubscriptionAddForm extends AbstractForm { $this->saved(); // reset values - $this->title = $this->description = ''; + $this->title = $this->description = $this->subscriptionLengthUnit = ''; $this->isDisabled = $this->showOrder = $this->cost = $this->subscriptionLength = $this->isRecurring = 0; $this->currency = 'EUR'; $this->groupIDs = array();