Index: branches/5.3.x/units/taxes/taxes_tag_processor.php =================================================================== diff -u -r15492 -r15695 --- branches/5.3.x/units/taxes/taxes_tag_processor.php (.../taxes_tag_processor.php) (revision 15492) +++ branches/5.3.x/units/taxes/taxes_tag_processor.php (.../taxes_tag_processor.php) (revision 15695) @@ -1,6 +1,6 @@ Application->GetVar('CountrySelector'); $name_field = 'l' . $this->Application->GetVar('m_lang') . '_Name'; - $id_field = $this->Application->getUnitOption('country-state', 'IDField'); - $table_name = $this->Application->getUnitOption('country-state', 'TableName'); + $country_config = $this->Application->getUnitConfig('country-state'); + $id_field = $country_config->getIDField(); + $table_name = $country_config->getTableName(); + switch ($params['show']) { case 'current': // selected countries in current zone @@ -132,9 +134,11 @@ $destination_table = $this->getDestinationsTable($params); $name_field = 'l' . $this->Application->GetVar('m_lang') . '_Name'; - $id_field = $this->Application->getUnitOption('country-state', 'IDField'); - $table_name = $this->Application->getUnitOption('country-state', 'TableName'); + $country_config = $this->Application->getUnitConfig('country-state'); + $id_field = $country_config->getIDField(); + $table_name = $country_config->getTableName(); + $country_id = $this->Application->GetVar('CountrySelector'); switch ($params['show']) { @@ -217,7 +221,7 @@ $selected_zips = $this->Conn->qstrArray($selected_zips); $sql = 'SELECT DISTINCT DestValue - FROM ' . $this->Application->getUnitOption('taxdst', 'TableName') . ' + FROM ' . $this->Application->getUnitConfig('taxdst')->getTableName() . ' WHERE COALESCE(DestValue, "") <> "" AND TaxZoneId <> ' . $object->GetID() . ' AND @@ -261,7 +265,7 @@ $object = $this->getObject($params); /* @var $object kDBItem */ - $table_name = $this->Application->getUnitOption('taxdst', 'TableName'); + $table_name = $this->Application->getUnitConfig('taxdst')->getTableName(); if ($object->IsTempTable()) { $table_name = $this->Application->GetTempName($table_name, 'prefix:' . $this->Prefix);