session parameter is needed on TaxEngine::getInstance method

This commit is contained in:
Manuel Raynaud
2014-01-02 10:07:51 +01:00
parent fbeeda93d4
commit 6057c69f95

View File

@@ -40,7 +40,7 @@ class TaxCreationForm extends BaseForm
protected function buildForm($change_mode = false)
{
$types = TaxEngine::getInstance()->getTaxTypeList();
$types = TaxEngine::getInstance($this->getRequest()->getSession())->getTaxTypeList();
$typeList = array();
$requirementList = array();
foreach ($types as $type) {