Skip to content

Commit 67b5fe7

Browse files
🔃 [EngCom] Public Pull Requests - 2.2-develop
Accepted Public Pull Requests: - magento#15372: Fixed Purchased Order Form button should visible properly (by @vgelani) - magento#15336: magento#12820 - Wrong annotation in _toOptionArray - magento/framework/Data/� (by @sanjay-wagento) - magento#15332: magento#14063 - Wrong invoice prefix in multistore setup due to default stor� (by @sanjay-wagento) - magento#15347: Fixed breadcrumb quote issue in product page magento#15037 (by @jignesh-baldha) - magento#15275: [fix] typo in method name _exportAddress[s]es (by @mhauri) - magento#15247: ISSUE-14747 Newsletter subscription confirmation message does not dis� (by @KaushikChavda) - magento#15089: Fix unnecessary recalculation of product list pricing (by @JeroenVanLeusden) Fixed GitHub Issues: - magento#15334: Purchased Order Form button should visible properly (reported by @neeta-wagento) has been fixed in magento#15372 by @vgelani in 2.2-develop branch Related commits: 1. 35b2cdf 2. be8c6cb - magento#15037: Product Details Page breadcrumbs cause syntax error on products containing quotes (reported by @brian-labelle) has been fixed in magento#15347 by @jignesh-baldha in 2.2-develop branch Related commits: 1. 6fcfb88 2. bfb39b5 3. 8e93b0d - magento#14747: Newsletter subscription confirmation message does not display after clicking link in email (reported by @tohann) has been fixed in magento#15247 by @KaushikChavda in 2.2-develop branch Related commits: 1. 6eb96c6 - magento#14941: Unnecessary recalculation of product list pricing causes huge slowdowns (reported by @paales) has been fixed in magento#15089 by @JeroenVanLeusden in 2.2-develop branch Related commits: 1. c5536d3
2 parents 7ae8aa0 + 2401aa5 commit 67b5fe7

File tree

7 files changed

+32
-8
lines changed

7 files changed

+32
-8
lines changed

app/code/Magento/Catalog/view/frontend/templates/product/breadcrumbs.phtml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ $viewModel = $block->getData('viewModel');
1111
"breadcrumbs": {
1212
"categoryUrlSuffix": "<?= $block->escapeHtml($viewModel->getCategoryUrlSuffix()); ?>",
1313
"useCategoryPathInUrl": <?= (int)$viewModel->isCategoryUsedInProductUrl(); ?>,
14-
"product": "<?= $block->escapeHtml($block->escapeJsQuote($viewModel->getProductName(), '"')); ?>"
14+
"product": "<?= $block->escapeHtml($block->escapeJs($viewModel->getProductName())); ?>"
1515
}
1616
}'>
1717
</div>

app/code/Magento/Newsletter/Controller/Subscriber/Confirm.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ public function execute()
3232
}
3333
}
3434

35-
$this->getResponse()->setRedirect($this->_storeManager->getStore()->getBaseUrl());
35+
$resultRedirect = $this->resultRedirectFactory->create();
36+
$resultRedirect->setUrl($this->_storeManager->getStore()->getBaseUrl());
37+
return $resultRedirect;
3638
}
3739
}

app/code/Magento/Paypal/Model/Api/Nvp.php

+14-1
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ public function callGetExpressCheckoutDetails()
846846
$request = $this->_exportToRequest($this->_getExpressCheckoutDetailsRequest);
847847
$response = $this->call(self::GET_EXPRESS_CHECKOUT_DETAILS, $request);
848848
$this->_importFromResponse($this->_paymentInformationResponse, $response);
849-
$this->_exportAddressses($response);
849+
$this->_exportAddresses($response);
850850
}
851851

852852
/**
@@ -1463,8 +1463,21 @@ protected function _exportLineItems(array &$request, $i = 0)
14631463
*
14641464
* @param array $data
14651465
* @return void
1466+
* @deprecated 100.2.2 typo in method name
1467+
* @see _exportAddresses
14661468
*/
14671469
protected function _exportAddressses($data)
1470+
{
1471+
$this->_exportAddresses($data);
1472+
}
1473+
1474+
/**
1475+
* Create billing and shipping addresses basing on response data
1476+
*
1477+
* @param array $data
1478+
* @return void
1479+
*/
1480+
protected function _exportAddresses($data)
14681481
{
14691482
$address = new \Magento\Framework\DataObject();
14701483
\Magento\Framework\DataObject\Mapper::accumulateByMap($data, $address, $this->_billingAddressMap);

app/code/Magento/Sales/Model/ResourceModel/EntityAbstract.php

+6-1
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,15 @@ protected function _beforeSave(\Magento\Framework\Model\AbstractModel $object)
123123
{
124124
/** @var \Magento\Sales\Model\AbstractModel $object */
125125
if ($object instanceof EntityInterface && $object->getIncrementId() == null) {
126+
$store = $object->getStore();
127+
$storeId = $store->getId();
128+
if ($storeId === null) {
129+
$storeId = $store->getGroup()->getDefaultStoreId();
130+
}
126131
$object->setIncrementId(
127132
$this->sequenceManager->getSequence(
128133
$object->getEntityType(),
129-
$object->getStore()->getGroup()->getDefaultStoreId()
134+
$storeId
130135
)->getNextValue()
131136
);
132137
}

app/code/Magento/Tax/Model/Config.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -832,20 +832,20 @@ public function getInfoUrl($store = null)
832832
* If it necessary will be returned conversion type (minus or plus)
833833
*
834834
* @param null|int|string|Store $store
835-
* @return bool
835+
* @return bool|int
836836
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
837837
*/
838838
public function needPriceConversion($store = null)
839839
{
840-
$res = false;
840+
$res = 0;
841841
$priceIncludesTax = $this->priceIncludesTax($store) || $this->getNeedUseShippingExcludeTax();
842842
if ($priceIncludesTax) {
843843
switch ($this->getPriceDisplayType($store)) {
844844
case self::DISPLAY_TYPE_EXCLUDING_TAX:
845845
case self::DISPLAY_TYPE_BOTH:
846846
return self::PRICE_CONVERSION_MINUS;
847847
case self::DISPLAY_TYPE_INCLUDING_TAX:
848-
$res = true;
848+
$res = false;
849849
break;
850850
default:
851851
break;

app/design/frontend/Magento/luma/Magento_Checkout/web/css/source/module/checkout/_payments.less

+4
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@
6363
}
6464
}
6565
}
66+
67+
#po_number {
68+
margin-bottom: 20px;
69+
}
6670
}
6771

6872
.payment-method-title {

lib/internal/Magento/Framework/Data/Collection/AbstractDb.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ public function fetchItem()
629629
/**
630630
* Overridden to use _idFieldName by default.
631631
*
632-
* @param null $valueField
632+
* @param string|null $valueField
633633
* @param string $labelField
634634
* @param array $additional
635635
* @return array

0 commit comments

Comments
 (0)