Skip to content

Commit 9f1fe7f

Browse files
author
Stanislav Idolov
committed
magento-engcom/magento2ce#2240: Fixed issue with directory upgrade script
1 parent 5cdea28 commit 9f1fe7f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

app/code/Magento/Directory/Setup/UpgradeData.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function upgrade(ModuleDataSetupInterface $setup, ModuleContextInterface
4747
$this->addCountryRegions($setup, 'IN', $this->getDataForIndia());
4848
}
4949
if (version_compare($context->getVersion(), '2.0.3', '<')) {
50-
$this->addCountryRegions($setup, $this->getDataForAustralia());
50+
$this->addCountryRegions($setup, 'AU', $this->getDataForAustralia());
5151
}
5252
}
5353

@@ -138,14 +138,14 @@ private function getDataForIndia()
138138
private function getDataForAustralia()
139139
{
140140
return [
141-
['AU', 'ACT', 'Australian Capital Territory'],
142-
['AU', 'NSW', 'New South Wales'],
143-
['AU', 'VIC', 'Victoria'],
144-
['AU', 'QLD', 'Queensland'],
145-
['AU', 'SA', 'South Australia'],
146-
['AU', 'TAS', 'Tasmania'],
147-
['AU', 'WA', 'Western Australia'],
148-
['AU', 'NT', 'Northern Territory']
141+
'ACT' => 'Australian Capital Territory',
142+
'NSW' => 'New South Wales',
143+
'VIC' => 'Victoria',
144+
'QLD' => 'Queensland',
145+
'SA' => 'South Australia',
146+
'TAS' => 'Tasmania',
147+
'WA' => 'Western Australia',
148+
'NT' => 'Northern Territory'
149149
];
150150
}
151151

0 commit comments

Comments
 (0)