Skip to content

Commit 29bab85

Browse files
authored
Merge branch '2.4-develop' into AC-1445
2 parents 082a9ab + ceffb8b commit 29bab85

File tree

23 files changed

+168
-100
lines changed

23 files changed

+168
-100
lines changed

app/code/Magento/Catalog/Pricing/Render/FinalPriceBox.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ public function getCacheKeyInfo()
196196
$cacheKeys['display_minimal_price'] = $this->getDisplayMinimalPrice();
197197
$cacheKeys['is_product_list'] = $this->isProductList();
198198
$cacheKeys['customer_group_id'] = $this->getSaleableItem()->getCustomerGroupId();
199+
$cacheKeys['zone'] = $this->getZone();
199200
return $cacheKeys;
200201
}
201202

app/code/Magento/CatalogImportExport/Model/Import/Product.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
*/
4848
class Product extends AbstractEntity
4949
{
50+
private const DEFAULT_GLOBAL_MULTIPLE_VALUE_SEPARATOR = ',';
5051
public const CONFIG_KEY_PRODUCT_TYPES = 'global/importexport/import_product_types';
5152
private const HASH_ALGORITHM = 'sha256';
5253

@@ -707,8 +708,6 @@ class Product extends AbstractEntity
707708
private $filesystem;
708709

709710
/**
710-
* Catalog config.
711-
*
712711
* @var CatalogConfig
713712
*/
714713
private $catalogConfig;
@@ -2812,6 +2811,10 @@ private function parseAttributesWithWrappedValues($attributesData)
28122811
public function parseMultiselectValues($values, $delimiter = self::PSEUDO_MULTI_LINE_SEPARATOR)
28132812
{
28142813
if (empty($this->_parameters[Import::FIELDS_ENCLOSURE])) {
2814+
if ($this->getMultipleValueSeparator() !== self::DEFAULT_GLOBAL_MULTIPLE_VALUE_SEPARATOR) {
2815+
$delimiter = $this->getMultipleValueSeparator();
2816+
}
2817+
28152818
return explode($delimiter, $values);
28162819
}
28172820
if (preg_match_all('~"((?:[^"]|"")*)"~', $values, $matches)) {

app/code/Magento/CatalogRule/etc/adminhtml/events.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,7 @@
1212
<event name="catalogrule_dirty_notice">
1313
<observer name="catalogrule" instance="Magento\CatalogRule\Observer\AddDirtyRulesNotice" />
1414
</event>
15+
<event name="prepare_catalog_product_collection_prices">
16+
<observer name="catalogrule" disabled="true" />
17+
</event>
1518
</config>

app/code/Magento/CatalogRule/etc/crontab/events.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,7 @@
99
<event name="catalog_product_get_final_price">
1010
<observer name="catalogrule" instance="Magento\CatalogRule\Observer\ProcessAdminFinalPriceObserver" />
1111
</event>
12+
<event name="prepare_catalog_product_collection_prices">
13+
<observer name="catalogrule" disabled="true" />
14+
</event>
1215
</config>

app/code/Magento/CatalogRule/etc/events.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,10 @@
2121
<event name="magento_catalogrule_api_data_ruleinterface_load_after">
2222
<observer name="legacy_model_load" instance="Magento\Framework\EntityManager\Observer\AfterEntityLoad" />
2323
</event>
24+
<event name="catalog_product_get_final_price">
25+
<observer name="catalogrule" instance="Magento\CatalogRule\Observer\ProcessFrontFinalPriceObserver" />
26+
</event>
27+
<event name="prepare_catalog_product_collection_prices">
28+
<observer name="catalogrule" instance="Magento\CatalogRule\Observer\PrepareCatalogProductCollectionPricesObserver" />
29+
</event>
2430
</config>

app/code/Magento/CatalogRule/etc/frontend/events.xml

Lines changed: 0 additions & 15 deletions
This file was deleted.

app/code/Magento/CatalogRule/etc/webapi_rest/events.xml

Lines changed: 0 additions & 15 deletions
This file was deleted.

app/code/Magento/CatalogRule/etc/webapi_soap/events.xml

Lines changed: 0 additions & 15 deletions
This file was deleted.

app/code/Magento/CatalogRuleGraphQl/etc/graphql/events.xml

Lines changed: 0 additions & 15 deletions
This file was deleted.

app/code/Magento/Email/Model/Transport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function sendMessage()
111111
$this->laminasTransport->send($laminasMessage);
112112
} catch (\Exception $e) {
113113
$this->logger->error($e);
114-
throw new MailException(new Phrase('Unable to send mail. Please try again later.'));
114+
throw new MailException(new Phrase('Unable to send mail. Please try again later.'), $e);
115115
}
116116
}
117117

0 commit comments

Comments
 (0)