diff --git a/airtime_mvc/application/forms/BillingUpgradeDowngrade.php b/airtime_mvc/application/forms/BillingUpgradeDowngrade.php index cc2cea6e6..bba9a6638 100644 --- a/airtime_mvc/application/forms/BillingUpgradeDowngrade.php +++ b/airtime_mvc/application/forms/BillingUpgradeDowngrade.php @@ -13,11 +13,13 @@ class Application_Form_BillingUpgradeDowngrade extends Zend_Form //unset($productTypes[$key]); } + $currentPlanProduct = BillingController::getClientCurrentAirtimeProduct(); + $currentPlanProductId = $currentPlanProduct["pid"]; $pid = new Zend_Form_Element_Radio('newproductid'); $pid->setLabel(_('Plan type:')) ->setMultiOptions($productTypes) ->setRequired(true) - ->setValue(BillingController::getClientCurrentAirtimeProduct()["pid"]); + ->setValue($currentPlanProductId); $this->addElement($pid); Logging::info(BillingController::getClientCurrentAirtimeProduct());