Skip to content

Commit

Permalink
1.0.13 release (#17)
Browse files Browse the repository at this point in the history
* Release 1.0.13
  • Loading branch information
Oleksandr Rykh authored Dec 9, 2020
1 parent 1d2d8c1 commit ff67581
Show file tree
Hide file tree
Showing 21 changed files with 3,736 additions and 2 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.12",
"version": "1.0.13",
"license": "proprietary",
"repositories": {
"repo": {
Expand Down
137 changes: 136 additions & 1 deletion patches.json
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,8 @@
"magento/magento2-base": {
"Fixes the issue with random products missing from categories after reindex.": {
">=2.3.4 <2.3.5": {
"file": "os/MDVA-30977__fixes_issue_with_missing_random_products_from_categories_after_reindex__2.3.4.patch"
"file": "os/MDVA-30977__fixes_issue_with_missing_random_products_from_categories_after_reindex__2.3.4.patch",
"replaced-with": "MDVA-30977-V2"
},
">=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 All @@ -470,8 +471,20 @@
"MDVA-30977-V2": {
"magento/magento2-base": {
"Fixes the issue with random products missing from categories after reindex.": {
">=2.3.0 <2.3.3": {
"file": "os/MDVA-28682__fixes_issue_with_missing_random_products_from_categories_after_reindex__2.3.0.patch"
},
">=2.3.3 <2.3.4": {
"file": "os/MDVA-28682__fixes_issue_with_missing_random_products_from_categories_after_reindex__2.3.3.patch"
},
">=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_v4.patch"
},
">=2.4.0 <2.4.2": {
"file": "os/MDVA-33068__fixes_issue_with_missing_random_products_from_categories_after_reindex__2.4.0.patch"
}
}
},
Expand All @@ -481,6 +494,13 @@
"file": "os/MDVA-30977__fixes_issue_with_missing_random_products_from_categories_after_reindex__1.1.5-p1_v4.patch"
}
}
},
"magento/inventory-metapackage": {
"Fixes the issue with random products missing from categories after reindex.": {
">=1.2.0 <1.2.2": {
"file": "os/MDVA-33068__fixes_issue_with_missing_random_products_from_categories_after_reindex__1.2.0.patch"
}
}
}
},
"MDVA-28202": {
Expand Down Expand Up @@ -681,13 +701,19 @@
"Fixes the issue where custom address attributes are not correctly displayed in the order details page in the my account area and in the backend.": {
">=2.3.4 <2.3.6 || >=2.4.0 <2.4.1": {
"file": "os/MDVA-31007__fixes_issue_where_custom_address_attributes_are_not_displayed_correctly_in_the_order_details_page_in_my_account_area_and_in_the_backend__2.4.0_v3.patch"
},
"2.4.1": {
"file": "os/MDVA-33368__fixes_issue_where_custom_address_attributes_are_not_displayed_correctly_in_the_order_details_page_in_my_account_area_and_in_the_backend__2.4.1.patch"
}
}
},
"magento/magento2-ee-base": {
"Fixes the issue where custom address attributes are not correctly displayed in the order details page in the my account area and in the backend.": {
">=2.3.4 <2.3.6 || >=2.4.0 <2.4.1": {
"file": "commerce/MDVA-31007__fixes_issue_where_custom_address_attributes_are_not_displayed_correctly_in_the_order_details_page_in_my_account_area_and_in_the_backend__2.4.0_v3.patch"
},
"2.4.1": {
"file": "commerce/MDVA-33368__fixes_issue_where_custom_address_attributes_are_not_displayed_correctly_in_the_order_details_page_in_my_account_area_and_in_the_backend__2.4.1.patch"
}
}
}
Expand Down Expand Up @@ -1001,6 +1027,9 @@
},
">=2.3.3 <2.3.5": {
"file": "os/MDVA-23773__fixes_issue_when_orders_appeared_in_the_payment_system_but_not_in_Magento__2.3.3.patch"
},
"2.3.6 || 2.4.1": {
"file": "os/MDVA-30524__fixes_issue_when_orders_appeared_in_the_payment_system_but_not_in_Magento__2.3.6.patch"
}
}
}
Expand All @@ -1022,5 +1051,111 @@
}
}
}
},
"MDVA-30858": {
"magento/magento2-base": {
"Fixes the issue with PayPal Settlement reports not being available under Reports > Sales > PayPal Settlement as expected.": {
">=2.3.0 <2.4.2": {
"file": "os/MDVA-30858__fixes_the_issue_with_PayPal_Settlement_reports_not_available__2.3.4.patch"
}
}
}
},
"MCP-87": {
"magento/magento2-base": {
"Improved indexation time for category product and stock indexers for large profiles.": {
">=2.3.1 <2.4.2": {
"file": "os/MCP-87__improved_indexation_time_for_category_product_and_stock_indexers__2.3.1.patch"
}
}
}
},
"MDVA-33106": {
"magento/magento2-ee-base": {
"Fixes the issue where the rescheduled product changes are erased after the cron 'run' command is executed.": {
">=2.3.0 <2.4.2": {
"file": "commerce/MDVA-33106__fixes_the_issue_where_the_rescheduled_product_changes_are_erased_after_the_cron__2.3.5-p2.patch"
}
}
}
},
"MDVA-19391": {
"magento/module-page-builder": {
"Fixes the issue where analytics_collect_data is throwing an error due to NULL description records in the catalog_category_entity_text table.": {
">=1.0.0 <1.3.0": {
"file": "commerce/MDVA-19391__fixes_the_issue_where_analytics_collect_data_is_throwing_an_error_due_to_NULL_description__2.3.1.patch"
}
}
}
},
"MDVA-20376": {
"magento/magento2-base": {
"Fixes the issue with the 'No such entity with customerId = 1' error in the exception.log for logged in customers after order placement.": {
">=2.3.2 <2.3.4": {
"file": "os/MDVA-20376__fixes_the_issue_No_such_entity_with_customerId__2.3.2.patch"
}
}
}
},
"MDVA-23764": {
"magento/magento2-base": {
"Fixes the bug in JsFooterPlugin.php that affects the display of dynamic blocks.": {
">=2.3.2 <2.3.5": {
"file": "os/MDVA-23764__fixes_the_bug_in_JsFooterPlugin__2.3.3.patch"
}
}
},
"magento/magento2-ee-base": {
"Fixes the bug in JsFooterPlugin.php that affects the display of dynamic blocks.": {
">=2.3.2 <2.3.5": {
"file": "commerce/MDVA-23764__fixes_the_bug_in_JsFooterPlugin__2.3.3.patch"
}
}
}
},
"MDVA-13203": {
"magento/magento2-base": {
"Fixes the issue where the 'Integrity constrain violation search_tmp_* table' error appears after a full reindex.": {
">=2.3.0 <2.4.2": {
"file": "os/MDVA-13203__Fixes_ann_error_integrity_constrain_violation_search_tmp___2.2.4.patch"
}
}
}
},
"MDVA-23426": {
"magento/magento2-base": {
"Fixes the issue where notification emails sent by Magento contain a blank body with content being added as attachment.": {
">=2.3.3 <2.3.5": {
"file": "os/MDVA-23426__fixes_the_notification_emails_contain_a_blank_body__2.3.3.patch"
}
}
}
},
"MDVA-22150": {
"magento/magento2-base": {
"Fixes the issue where customers with a configurable product in cart and a coupon applied, cannot login if that configurable product is disabled in Admin.": {
">=2.3.1 <2.3.4": {
"file": "os/MDVA-22150__fixes_the_customer_cannot_login_after_disabling_a_configurable_product__2.3.2.patch"
}
}
}
},
"MDVA-32545": {
"magento/magento2-base": {
"Fixes the issue where invoices are not sent out automatically when creating orders from Admin.": {
">=2.3.0 <2.4.2": {
"file": "os/MDVA-32545__fixes_the_issue_where_invoices_are_not_sent_out_automatically__2.3.2-p2.patch"
}
}
}
},
"MDVA-32714": {
"magento/magento2-base": {
"Fixes the issue where customer group price is not working in GraphQL product query.": {
">=2.3.4 <2.4.1": {
"file": "os/MDVA-32714__fixes_the_issue_where_customer_group_price_is_not_working_in_GraphQL__2.4.0.patch"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
diff --git a/vendor/magento/module-page-builder-analytics/Model/ContentTypeUsageReportProvider.php b/vendor/magento/module-page-builder-analytics/Model/ContentTypeUsageReportProvider.php
index bbd8b6340..0a7112e05 100644
--- a/vendor/magento/module-page-builder-analytics/Model/ContentTypeUsageReportProvider.php
+++ b/vendor/magento/module-page-builder-analytics/Model/ContentTypeUsageReportProvider.php
@@ -99,12 +99,14 @@ class ContentTypeUsageReportProvider
$query->getSelect()->limit($this->batchSize, $batch * $this->batchSize)
);
foreach ($batchQuery->fetchAll() as $row) {
- foreach ($contentTypes as $type) {
- // Count the amount of content types within the content
- $typeCounts[$type['name']] += substr_count(
- $row['content'],
- 'data-content-type="' . $type['name'] . '"'
- );
+ if (is_string($row['content'])) {
+ foreach ($contentTypes as $type) {
+ // Count the amount of content types within the content
+ $typeCounts[$type['name']] += substr_count(
+ $row['content'],
+ 'data-content-type="' . $type['name'] . '"'
+ );
+ }
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
diff --git a/vendor/magento/module-banner/Controller/Ajax/Load.php b/vendor/magento/module-banner/Controller/Ajax/Load.php
index bb88e6164ae..01e8c71a23f 100644
--- a/vendor/magento/module-banner/Controller/Ajax/Load.php
+++ b/vendor/magento/module-banner/Controller/Ajax/Load.php
@@ -5,12 +5,14 @@
*/
namespace Magento\Banner\Controller\Ajax;

-use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;
use Magento\Backend\App\Action\Context;
use Magento\Banner\Model\Banner\DataFactory;
use Magento\Framework\App\Action\Action;
+use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;
use Magento\Framework\Controller\Result\JsonFactory;
use Magento\Framework\Controller\Result\RawFactory;
+use Zend\Http\AbstractMessage;
+use Zend\Http\Response;

/**
* Banner loading
@@ -51,20 +53,22 @@ class Load extends Action implements HttpGetActionInterface
}

/**
- * {@inheritdoc}
+ * @inheritdoc
*/
public function execute()
{
- $resultRaw = $this->rawFactory->create();
$dataObject = $this->dataFactory->create();
-
+ $resultJson = $this->jsonFactory->create();
if (!$this->getRequest()->isXmlHttpRequest()) {
- return $resultRaw->setHttpResponseCode(400);
+ $resultJson->setStatusHeader(
+ Response::STATUS_CODE_400,
+ AbstractMessage::VERSION_11,
+ 'Invalid Request'
+ );
+ $response = ['message' => __('Invalid Request')];
+ } else {
+ $response = ['data' => $dataObject->getSectionData()];
}
-
- $response = ['data' => $dataObject->getSectionData()];
- $resultJson = $this->jsonFactory->create();
-
return $resultJson->setData($response);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
diff --git a/vendor/magento/module-staging/Model/ResourceModel/Update.php b/vendor/magento/module-staging/Model/ResourceModel/Update.php
index 03baeb38c50..3e6b66b57e7 100644
--- a/vendor/magento/module-staging/Model/ResourceModel/Update.php
+++ b/vendor/magento/module-staging/Model/ResourceModel/Update.php
@@ -117,6 +117,7 @@ class Update extends AbstractDb

/**
* Check for update entities associated with rollback_id.
+ *
* Receives optional parameter $ignoredUpdates with array of update ids which will be filtered in request.
*
* @param int $rollbackId
@@ -151,7 +152,7 @@ class Update extends AbstractDb
$bind,
['id = ?' => $object->getOldId()]
);
- } else {
+ } elseif (!$object->getOldOriginId()) {
foreach ($this->stagingList->getEntityTypes() as $entityType) {
$metadata = $this->metadataPool->getMetadata($entityType);
$connection = $this->resourceConnection->getConnectionByName($metadata->getEntityConnectionName());
diff --git a/vendor/magento/module-staging/Model/UpdateRepository.php b/vendor/magento/module-staging/Model/UpdateRepository.php
index 1c338981f92..b78a78f6a29 100644
--- a/vendor/magento/module-staging/Model/UpdateRepository.php
+++ b/vendor/magento/module-staging/Model/UpdateRepository.php
@@ -16,10 +16,9 @@ use Magento\Framework\Exception\ValidatorException;
use Magento\Staging\Model\ResourceModel\Update as UpdateResource;
use Magento\Staging\Api\Data\UpdateInterface;
use Magento\Staging\Model\Update\Validator;
-use Magento\Staging\Model\VersionHistoryInterface;

/**
- * Class UpdateRepository
+ * Represents UpdateRepository class
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class UpdateRepository implements UpdateRepositoryInterface
@@ -65,7 +64,7 @@ class UpdateRepository implements UpdateRepositoryInterface
* @param UpdateResource $resource
* @param UpdateFactory $updateFactory
* @param Validator $validator
- * @param \Magento\Staging\Model\VersionHistoryInterface $versionHistory
+ * @param VersionHistoryInterface $versionHistory
* @param CollectionProcessorInterface|null $collectionProcessor
*/
public function __construct(
@@ -202,6 +201,8 @@ class UpdateRepository implements UpdateRepositoryInterface
}

/**
+ * Retrieves rollback entity for update
+ *
* @param UpdateInterface $entity
* @return int
* @throws CouldNotSaveException
@@ -218,11 +219,14 @@ class UpdateRepository implements UpdateRepositoryInterface
$rollback->setStartTime($entity->getEndTime());
$rollback->setIsRollback(true);
}
+ $rollback->setOldOriginId($entity->getOldId());
$rollback = $this->save($rollback);
return $rollback->getId();
}

/**
+ * Retrieves id for entity
+ *
* @param UpdateInterface $entity
* @return int
*/
@@ -240,7 +244,7 @@ class UpdateRepository implements UpdateRepositoryInterface
}

/**
- * {@inheritdoc}
+ * @inheritdoc
*/
public function getVersionMaxIdByTime($timestamp)
{
Loading

0 comments on commit ff67581

Please sign in to comment.