Skip to content

Commit

Permalink
magento-engcom/magento2ce#2240: Fixed issue with directory upgrade sc…
Browse files Browse the repository at this point in the history
…ript
  • Loading branch information
Stanislav Idolov committed Oct 11, 2018
1 parent 5cdea28 commit 9f1fe7f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions app/code/Magento/Directory/Setup/UpgradeData.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function upgrade(ModuleDataSetupInterface $setup, ModuleContextInterface
$this->addCountryRegions($setup, 'IN', $this->getDataForIndia());
}
if (version_compare($context->getVersion(), '2.0.3', '<')) {
$this->addCountryRegions($setup, $this->getDataForAustralia());
$this->addCountryRegions($setup, 'AU', $this->getDataForAustralia());
}
}

Expand Down Expand Up @@ -138,14 +138,14 @@ private function getDataForIndia()
private function getDataForAustralia()
{
return [
['AU', 'ACT', 'Australian Capital Territory'],
['AU', 'NSW', 'New South Wales'],
['AU', 'VIC', 'Victoria'],
['AU', 'QLD', 'Queensland'],
['AU', 'SA', 'South Australia'],
['AU', 'TAS', 'Tasmania'],
['AU', 'WA', 'Western Australia'],
['AU', 'NT', 'Northern Territory']
'ACT' => 'Australian Capital Territory',
'NSW' => 'New South Wales',
'VIC' => 'Victoria',
'QLD' => 'Queensland',
'SA' => 'South Australia',
'TAS' => 'Tasmania',
'WA' => 'Western Australia',
'NT' => 'Northern Territory'
];
}

Expand Down

0 comments on commit 9f1fe7f

Please sign in to comment.