-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔃 [EngCom] Public Pull Requests - 2.3-develop
Accepted Public Pull Requests: - #18856: Fixed - Downloadable products - Downloadable Information - Link design issue (by @speedy008) - #18897: Remove duplicated CSS selector (by @dmytro-ch) - #18889: fixed Translation issue send-friend in send.phtml (by @rahulwebkul) - #18851: Fixes theme header logo and icon upload (by @wiardvanrij) - #18844: Resolves 6731 by adding a custom message for refunding shipping (by @Rus0) - #18846: Fix for Invalid Unit Test Annotations (by @okorshenko) - #18798: Added form fieldset before html data to \Magento\Framework\Data\Form\Element\Fieldset in getElementHtml() method (by @vasilii-b) - #18774: [Forwardport] 17516: added Australian states (by @VitaliyBoyko) - #18700: Reload cart totals when cart data changes (by @tdgroot) - #18590: Fix disappearing navigation arrows in fotorama zoom (by @luukschakenraad) - #18419: Fix: Exception Error in Catalog Price Rule while Backend language is not English (by @Mardl) Fixed GitHub Issues: - #18854: Downloadable products - Downloadable Information - Link design issue (reported by @saphaljha) has been fixed in #18856 by @speedy008 in 2.3-develop branch Related commits: 1. 7401795 2. cd97592 - #18779: Translation issue send-friend in sendphtml (reported by @Franzld) has been fixed in #18889 by @rahulwebkul in 2.3-develop branch Related commits: 1. 008fe5d 2. 7db2cc9 3. 0f91cb7 4. 1c23cf9 - #18688: Unable to upload Logo, Magento 2.3.0 Beta18 (reported by @davegog) has been fixed in #18851 by @wiardvanrij in 2.3-develop branch Related commits: 1. ba69bfe - #6731: 'Exception' with message 'Warning: Division by zero in vendor/magento/module-sales/Model/Order/Creditmemo/Total/Discount.php on line 32' in vendor/magento/framework/App/ErrorHandler.php:61 (reported by @lsv) has been fixed in #18844 by @Rus0 in 2.3-develop branch Related commits: 1. dfa2f25 2. 4cf4884 3. a99c24f 4. b02dbc6 5. d3e576f 6. 02dc040 7. 73af54a - #18840: Invalid Unit Test Annotations (reported by @okorshenko) has been fixed in #18846 by @okorshenko in 2.3-develop branch Related commits: 1. 0f0f64d - #2618: Class \Magento\Framework\Data\Form\Element\Fieldset breaks specification of the parent class \Magento\Framework\Data\Form\Element\AbstractElement by not calling the method getBeforeElementHtml (getAfterElementHtml is called) (reported by @dmitry-fedyuk) has been fixed in #18798 by @vasilii-b in 2.3-develop branch Related commits: 1. 069195c - #18585: Navigation arrows zoomed fotorama disappear (reported by @luukschakenraad) has been fixed in #18590 by @luukschakenraad in 2.3-develop branch Related commits: 1. 96507df 2. 623a6b0 - #12399: Exception Error in Catalog Price Rule while Backend language is not English (reported by @Drakas) has been fixed in #18419 by @Mardl in 2.3-develop branch Related commits: 1. 8f36157 2. 0d97a16 3. ba703d7 4. d11ef56
- Loading branch information
Showing
30 changed files
with
264 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
102 changes: 102 additions & 0 deletions
102
app/code/Magento/Directory/Setup/Patch/Data/AddDataForAustralia.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
<?php | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Magento\Directory\Setup\Patch\Data; | ||
|
||
use Magento\Directory\Setup\DataInstaller; | ||
use Magento\Framework\Setup\ModuleDataSetupInterface; | ||
use Magento\Framework\Setup\Patch\DataPatchInterface; | ||
use Magento\Framework\Setup\Patch\PatchVersionInterface; | ||
|
||
/** | ||
* Adds Australian States | ||
*/ | ||
class AddDataForAustralia implements DataPatchInterface, PatchVersionInterface | ||
{ | ||
/** | ||
* @var ModuleDataSetupInterface | ||
*/ | ||
private $moduleDataSetup; | ||
|
||
/** | ||
* @var \Magento\Directory\Setup\DataInstallerFactory | ||
*/ | ||
private $dataInstallerFactory; | ||
|
||
/** | ||
* @param ModuleDataSetupInterface $moduleDataSetup | ||
* @param \Magento\Directory\Setup\DataInstallerFactory $dataInstallerFactory | ||
*/ | ||
public function __construct( | ||
ModuleDataSetupInterface $moduleDataSetup, | ||
\Magento\Directory\Setup\DataInstallerFactory $dataInstallerFactory | ||
) { | ||
$this->moduleDataSetup = $moduleDataSetup; | ||
$this->dataInstallerFactory = $dataInstallerFactory; | ||
} | ||
|
||
/** | ||
* @inheritdoc | ||
*/ | ||
public function apply() | ||
{ | ||
/** @var DataInstaller $dataInstaller */ | ||
$dataInstaller = $this->dataInstallerFactory->create(); | ||
$dataInstaller->addCountryRegions( | ||
$this->moduleDataSetup->getConnection(), | ||
$this->getDataForAustralia() | ||
); | ||
} | ||
|
||
/** | ||
* Australian states data. | ||
* | ||
* @return array | ||
*/ | ||
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'] | ||
]; | ||
} | ||
|
||
/** | ||
* @inheritdoc | ||
*/ | ||
public static function getDependencies() | ||
{ | ||
return [ | ||
InitializeDirectoryData::class, | ||
AddDataForCroatia::class, | ||
AddDataForIndia::class, | ||
]; | ||
} | ||
|
||
/** | ||
* @inheritdoc | ||
*/ | ||
public static function getVersion() | ||
{ | ||
return '2.0.3'; | ||
} | ||
|
||
/** | ||
* @inheritdoc | ||
*/ | ||
public function getAliases() | ||
{ | ||
return []; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.