Same thing again
This commit is contained in:
parent
cd26671627
commit
4b7f8abc3d
|
@ -15,6 +15,7 @@ class Application_Form_BillingUpgradeDowngrade extends Zend_Form
|
||||||
|
|
||||||
$currentPlanProduct = BillingController::getClientCurrentAirtimeProduct();
|
$currentPlanProduct = BillingController::getClientCurrentAirtimeProduct();
|
||||||
$currentPlanProductId = $currentPlanProduct["pid"];
|
$currentPlanProductId = $currentPlanProduct["pid"];
|
||||||
|
$currentPlanProductBillingCycle = $currentPlanProduct["billingcycle"];
|
||||||
$pid = new Zend_Form_Element_Radio('newproductid');
|
$pid = new Zend_Form_Element_Radio('newproductid');
|
||||||
$pid->setLabel(_('Plan type:'))
|
$pid->setLabel(_('Plan type:'))
|
||||||
->setMultiOptions($productTypes)
|
->setMultiOptions($productTypes)
|
||||||
|
@ -27,7 +28,7 @@ class Application_Form_BillingUpgradeDowngrade extends Zend_Form
|
||||||
$billingcycle->setLabel(_('Billing cycle:'))
|
$billingcycle->setLabel(_('Billing cycle:'))
|
||||||
->setMultiOptions(array('monthly' => 'Monthly', 'annually' => 'Annually'))
|
->setMultiOptions(array('monthly' => 'Monthly', 'annually' => 'Annually'))
|
||||||
->setRequired(true)
|
->setRequired(true)
|
||||||
->setValue(BillingController::getClientCurrentAirtimeProduct()["billingcycle"]);
|
->setValue($currentPlanProductBillingCycle);
|
||||||
|
|
||||||
$this->addElement($billingcycle);
|
$this->addElement($billingcycle);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue