Skip to content

Commit

Permalink
1.0.8 release (#7)
Browse files Browse the repository at this point in the history
* 1.0.8 release

* 1.0.8 release
 - fixed incorrect versions

* 1.0.8 release
 - fixed incorrect versions

* 1.0.8 release
 - move patch into correct folder

* 1.0.8 release
 - fixed incorrect versions

* 1.0.8 release
- fix a patch
  • Loading branch information
Oleksandr Rykh authored Oct 27, 2020
1 parent 378c715 commit afe3bf7
Show file tree
Hide file tree
Showing 12 changed files with 1,248 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "magento/quality-patches",
"description": "Provides quality patches for Magento 2",
"type": "magento2-component",
"version": "1.0.7",
"version": "1.0.8",
"license": "proprietary",
"repositories": {
"repo": {
Expand Down
78 changes: 77 additions & 1 deletion patches.json
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,10 @@
"MDVA-30977": {
"magento/magento2-base": {
"Fixes the issue with random products missing from categories after reindex.": {
">=2.3.4 <2.4.0": {
">=2.3.4 <2.3.5": {
"file": "os/MDVA-30977__fixes_issue_with_missing_random_products_from_categories_after_reindex__2.3.4.patch"
},
">=2.3.5 <2.4.0": {
"file": "os/MDVA-30977__fixes_issue_with_missing_random_products_from_categories_after_reindex__2.3.5-p1.patch"
}
}
Expand Down Expand Up @@ -643,5 +646,78 @@
}
}
}
},
"MDVA-31242": {
"magento/magento2-b2b-base": {
"Fixes the issue where Wrong currency sign in Credit Memo grid is displayed.": {
">=1.1.0 <1.2.1": {
"file": "commerce/MDVA-31242__fixed_case_with_getting_collection_size__2.4.0.patch"
}
}
}
},
"MDVA-31295": {
"magento/magento2-ee-base": {
"Fixes the issue where reward points are not calculated when a partial order completes and items are taxed.": {
">=2.3.0 <2.4.2": {
"file": "commerce/MDVA-31295__fixes_reward_points_are_not_calculated__2.3.1.patch"
}
}
}
},
"MDVA-30112": {
"magento/inventory-composer-metapackage": {
"Fixes the issue where when there are orders more than the 'bunch-size' value, Magento considers the orders with 'pending' status as inconsistencies.": {
">=1.1.4 <1.1.6": {
"file": "os/MDVA-30112__fixes_the_issue_with_order_pending_status_is_inconsistency__2.3.5.patch"
}
}
},
"magento/inventory-metapackage": {
"Fixes the issue where when there are orders more than the 'bunch-size' value, Magento considers the orders with 'pending' status as inconsistencies.": {
">=1.2.0 <1.2.2": {
"file": "os/MDVA-30112__fixes_the_issue_with_order_pending_status_is_inconsistency__2.3.5.patch"
}
}
}
},
"MDVA-31150": {
"magento/magento2-ee-base": {
"Fixes the issue where Store Credit and Gift Card balances are not returned by GET Invoice Rest API call when Invoice was Posted by Rest API call and order was particularly paid by Store Credit and Gift Card accounts.": {
">=2.3.0 <2.4.2": {
"file": "commerce/MDVA-31150__fixes_issue_when_store_credit_and_gift_card_are_not_return__2.3.5-p2.patch"
}
}
}
},
"MDVA-29954": {
"magento/magento2-b2b-base": {
"Fixes the issue where 'New Company Registration Request' and 'You've been linked to a company' emails were sent from wrong address.": {
">=1.1.0 <1.1.6 || 1.2.0 || 1.3.0": {
"file": "commerce/MDVA-29954__fixes_emails_were_sent_from_wrong_address__2.3.3.patch"
}
}
}
},
"MDVA-28357": {
"magento/magento2-base": {
"Fixes the issue SKU search in Advanced Search page doesn't work": {
">=2.3.2 <2.3.6 || >=2.4.0 <2.4.1": {
"file": "os/MDVA-28357__fixes_the_issue_SKU_search_in_advanced_search__2.3.4-p2.patch"
}
}
}
},
"MDVA-30963": {
"magento/magento2-base": {
"Fixes the issue Admin Product search filter not working as expected": {
">=2.3.3 <2.4.2": {
"file": "os/MDVA-30963__fixes_admin_product_search_filter__2.4.0.patch"
},
">=2.3.2 <2.3.3": {
"file": "os/MDVA-32010__fixes_admin_product_search_filter__2.3.2.patch"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
diff --git a/vendor/magento/module-company/Model/Email/Sender.php b/vendor/magento/module-company/Model/Email/Sender.php
index fe31d20f8..18960965e 100644
--- a/vendor/magento/module-company/Model/Email/Sender.php
+++ b/vendor/magento/module-company/Model/Email/Sender.php
@@ -257,11 +257,6 @@ class Sender
$mergedCustomerData = $this->customerData->getDataObjectByCustomer($customer, $companyId);

if ($companySuperUser && $mergedCustomerData) {
- $sender = [
- 'name' => $companySuperUser->getName(),
- 'email' => $companySuperUser->getEmail()
- ];
-
$mergedCustomerData->setData('companyAdminEmail', $companySuperUser->getEmail());
$this->sendEmailTemplate(
$customer->getEmail(),
@@ -270,7 +265,7 @@ class Sender
ScopeInterface::SCOPE_STORE,
$customer->getStoreId()
),
- $sender,
+ $this->xmlPathRegisterEmailIdentity,
['customer' => $mergedCustomerData],
$customer->getStoreId()
);
@@ -308,10 +303,7 @@ class Sender
$recipient,
$toName,
$this->emailTemplateConfig->getCompanyCreateNotifyAdminTemplateId(),
- [
- 'email' => $customer->getEmail(),
- 'name' => $this->customerViewHelper->getCustomerName($customer)
- ],
+ $this->xmlPathRegisterEmailIdentity,
[
'customer' => $customer->getFirstname(),
'company' => $companyName,
Original file line number Diff line number Diff line change
@@ -0,0 +1,232 @@
diff --git a/vendor/magento/module-customer-balance/Model/Plugin/InvoiceRepository.php b/vendor/magento/module-customer-balance/Model/Plugin/InvoiceRepository.php
index b88514d7f78..21a1c82ff0f 100644
--- a/vendor/magento/module-customer-balance/Model/Plugin/InvoiceRepository.php
+++ b/vendor/magento/module-customer-balance/Model/Plugin/InvoiceRepository.php
@@ -5,22 +5,29 @@
*/
namespace Magento\CustomerBalance\Model\Plugin;

+use Magento\Sales\Api\Data\InvoiceExtension;
+use Magento\Sales\Api\Data\InvoiceExtensionFactory;
use Magento\Sales\Api\Data\InvoiceInterface;
+use Magento\Sales\Api\Data\InvoiceSearchResultInterface;
+use Magento\Sales\Api\InvoiceRepositoryInterface;

+/**
+ * Plugin for Invoice repository
+ */
class InvoiceRepository
{
/**
- * @var \Magento\Sales\Api\Data\InvoiceExtensionFactory
+ * @var InvoiceExtensionFactory
*/
private $extensionFactory;

/**
* Init plugin
*
- * @param \Magento\Sales\Api\Data\InvoiceExtensionFactory $invoiceExtensionFactory
+ * @param InvoiceExtensionFactory $invoiceExtensionFactory
*/
public function __construct(
- \Magento\Sales\Api\Data\InvoiceExtensionFactory $invoiceExtensionFactory
+ InvoiceExtensionFactory $invoiceExtensionFactory
) {
$this->extensionFactory = $invoiceExtensionFactory;
}
@@ -28,16 +35,16 @@ class InvoiceRepository
/**
* Get invoice customer balance
*
- * @param \Magento\Sales\Api\InvoiceRepositoryInterface $subject
- * @param \Magento\Sales\Api\Data\InvoiceInterface $resultEntity
- * @return \Magento\Sales\Api\Data\InvoiceInterface
+ * @param InvoiceRepositoryInterface $subject
+ * @param InvoiceInterface $resultEntity
+ * @return InvoiceInterface
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
public function afterGet(
- \Magento\Sales\Api\InvoiceRepositoryInterface $subject,
- \Magento\Sales\Api\Data\InvoiceInterface $resultEntity
+ InvoiceRepositoryInterface $subject,
+ InvoiceInterface $resultEntity
) {
- /** @var \Magento\Sales\Api\Data\InvoiceExtension $extensionAttributes */
+ /** @var InvoiceExtension $extensionAttributes */
$extensionAttributes = $resultEntity->getExtensionAttributes();
if ($extensionAttributes === null) {
$extensionAttributes = $this->extensionFactory->create();
@@ -51,14 +58,16 @@ class InvoiceRepository
}

/**
- * @param \Magento\Sales\Api\InvoiceRepositoryInterface $subject
- * @param \Magento\Sales\Api\Data\InvoiceSearchResultInterface $resultInvoice
- * @return \Magento\Sales\Api\Data\InvoiceSearchResultInterface
+ * Add customer balance amount information to invoice list
+ *
+ * @param InvoiceRepositoryInterface $subject
+ * @param InvoiceSearchResultInterface $resultInvoice
+ * @return InvoiceSearchResultInterface
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
public function afterGetList(
- \Magento\Sales\Api\InvoiceRepositoryInterface $subject,
- \Magento\Sales\Api\Data\InvoiceSearchResultInterface $resultInvoice
+ InvoiceRepositoryInterface $subject,
+ InvoiceSearchResultInterface $resultInvoice
) {
/** @var InvoiceInterface $invoice */
foreach ($resultInvoice->getItems() as $invoice) {
@@ -70,19 +79,25 @@ class InvoiceRepository
/**
* Add customer balance amount information to invoice
*
- * @param \Magento\Sales\Api\InvoiceRepositoryInterface $subject
- * @param \Magento\Sales\Api\Data\InvoiceInterface $entity
+ * @param InvoiceRepositoryInterface $subject
+ * @param InvoiceInterface $entity
*
* @return void
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
public function beforeSave(
- \Magento\Sales\Api\InvoiceRepositoryInterface $subject,
- \Magento\Sales\Api\Data\InvoiceInterface $entity
+ InvoiceRepositoryInterface $subject,
+ InvoiceInterface $entity
) {
$extensionAttributes = $entity->getExtensionAttributes();
- if ($extensionAttributes) {
+ if (!$extensionAttributes) {
+ return;
+ }
+
+ if ($extensionAttributes->getCustomerBalanceAmount() !== null) {
$entity->setCustomerBalanceAmount($extensionAttributes->getCustomerBalanceAmount());
+ }
+ if ($extensionAttributes->getBaseCustomerBalanceAmount() !== null) {
$entity->setBaseCustomerBalanceAmount($extensionAttributes->getBaseCustomerBalanceAmount());
}
}
diff --git a/vendor/magento/module-gift-card-account/Model/Plugin/InvoiceRepository.php b/vendor/magento/module-gift-card-account/Model/Plugin/InvoiceRepository.php
index 8b9bb605033..ba681ffd49a 100644
--- a/vendor/magento/module-gift-card-account/Model/Plugin/InvoiceRepository.php
+++ b/vendor/magento/module-gift-card-account/Model/Plugin/InvoiceRepository.php
@@ -5,38 +5,44 @@
*/
namespace Magento\GiftCardAccount\Model\Plugin;

+use Magento\Sales\Api\Data\InvoiceExtension;
+use Magento\Sales\Api\Data\InvoiceExtensionFactory;
+use Magento\Sales\Api\Data\InvoiceInterface;
+use Magento\Sales\Api\Data\InvoiceSearchResultInterface;
+use Magento\Sales\Api\InvoiceRepositoryInterface;
+
/**
* Plugin for Invoice repository.
*/
class InvoiceRepository
{
/**
- * @var \Magento\Sales\Api\Data\InvoiceExtensionFactory
+ * @var InvoiceExtensionFactory
*/
private $extensionFactory;

/**
- * @param \Magento\Sales\Api\Data\InvoiceExtensionFactory $extensionFactory
+ * @param InvoiceExtensionFactory $extensionFactory
*/
public function __construct(
- \Magento\Sales\Api\Data\InvoiceExtensionFactory $extensionFactory
+ InvoiceExtensionFactory $extensionFactory
) {
$this->extensionFactory = $extensionFactory;
}

/**
- * @param \Magento\Sales\Api\InvoiceRepositoryInterface $subject
- * @param \Magento\Sales\Api\Data\InvoiceInterface $entity
- *
- * @return \Magento\Sales\Api\Data\InvoiceInterface
+ * Sets gift card account data from extension attributes to Invoice models after get
*
+ * @param InvoiceRepositoryInterface $subject
+ * @param InvoiceInterface $entity
+ * @return InvoiceInterface
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
public function afterGet(
- \Magento\Sales\Api\InvoiceRepositoryInterface $subject,
- \Magento\Sales\Api\Data\InvoiceInterface $entity
+ InvoiceRepositoryInterface $subject,
+ InvoiceInterface $entity
) {
- /** @var \Magento\Sales\Api\Data\InvoiceExtension $extensionAttributes */
+ /** @var InvoiceExtension $extensionAttributes */
$extensionAttributes = $entity->getExtensionAttributes();

if ($extensionAttributes === null) {
@@ -52,16 +58,17 @@ class InvoiceRepository
}

/**
- * @param \Magento\Sales\Api\InvoiceRepositoryInterface $subject
- * @param \Magento\Sales\Api\Data\InvoiceSearchResultInterface $entities
+ * Sets gift card account data from extension attributes to Invoice models after get list
*
- * @return \Magento\Sales\Api\Data\InvoiceSearchResultInterface
+ * @param InvoiceRepositoryInterface $subject
+ * @param InvoiceSearchResultInterface $entities
+ * @return InvoiceSearchResultInterface
*/
public function afterGetList(
- \Magento\Sales\Api\InvoiceRepositoryInterface $subject,
- \Magento\Sales\Api\Data\InvoiceSearchResultInterface $entities
+ InvoiceRepositoryInterface $subject,
+ InvoiceSearchResultInterface $entities
) {
- /** @var \Magento\Sales\Api\Data\InvoiceInterface $entity */
+ /** @var InvoiceInterface $entity */
foreach ($entities->getItems() as $entity) {
$this->afterGet($subject, $entity);
}
@@ -70,24 +77,26 @@ class InvoiceRepository
}

/**
- * Sets gift card account data from extension attributes
- * to Invoice model.
- *
- * @param \Magento\Sales\Api\InvoiceRepositoryInterface $subject
- * @param \Magento\Sales\Api\Data\InvoiceInterface $entity
+ * Sets gift card account data from extension attributes to Invoice model before save
*
+ * @param InvoiceRepositoryInterface $subject
+ * @param InvoiceInterface $entity
* @return void
- *
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
public function beforeSave(
- \Magento\Sales\Api\InvoiceRepositoryInterface $subject,
- \Magento\Sales\Api\Data\InvoiceInterface $entity
+ InvoiceRepositoryInterface $subject,
+ InvoiceInterface $entity
) {
$extensionAttributes = $entity->getExtensionAttributes();
+ if (!$extensionAttributes) {
+ return;
+ }

- if ($extensionAttributes) {
+ if ($extensionAttributes->getGiftCardsAmount() !== null) {
$entity->setGiftCardsAmount($extensionAttributes->getGiftCardsAmount());
+ }
+ if ($extensionAttributes->getBaseGiftCardsAmount() !== null) {
$entity->setBaseGiftCardsAmount($extensionAttributes->getBaseGiftCardsAmount());
}
}
Loading

0 comments on commit afe3bf7

Please sign in to comment.