Reset subscription length after saving subscription
authorMatthias Schmidt <gravatronics@live.com>
Fri, 2 Jun 2017 15:44:30 +0000 (17:44 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Fri, 2 Jun 2017 15:44:30 +0000 (17:44 +0200)
wcfsetup/install/files/lib/acp/form/PaidSubscriptionAddForm.class.php

index b3d36c1c07fc828273c375500451b6f0078332d8..e3446c799ed24ee2618d10d5d3a42cb258dc7d07 100644 (file)
@@ -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();