Skip to content

Commit c0a3931

Browse files
🔃 [EngCom] Public Pull Requests - 2.3-develop
Accepted Public Pull Requests: - #21455: Infinite redirects in Magento admin #21454 (by @Jitheesh) - #21303: Fix-issue-21292 Google Analytics isAnonymizedIpActive always true (by @Nazar65) - #21079: Fixes for product tabbing issue (by @prakash2jcommerce) - #20818: 14857: prevent cache drop for frontend caches on sitemap generation (by @david-fuehr) - #20129: Issue fixed #20128 : Date range returns the same start and end date (by @milindsingh) - #20079: [2.3] Add support for validation message callback (by @floorz) Fixed GitHub Issues: - #21454: Infinite redirects in Magento admin (reported by @Jitheesh) has been fixed in #21455 by @Jitheesh in 2.3-develop branch Related commits: 1. 11cfe04 - #21292: Google Analytics isAnonymizedIpActive always true (reported by @apomili) has been fixed in #21303 by @Nazar65 in 2.3-develop branch Related commits: 1. edb9c6e 2. 1e86f88 3. 67ea734 - #21077: Tabbing issue on product detail page (reported by @prakash2jcommerce) has been fixed in #21079 by @prakash2jcommerce in 2.3-develop branch Related commits: 1. 7fc0ff7 2. 01d7f51 3. c034338 - #14857: Sitemap generation cron job flushes entire cache (reported by @scottsb) has been fixed in #20818 by @david-fuehr in 2.3-develop branch Related commits: 1. b9190b3 2. ebc266b 3. 28a9720 - #20128: Magento\Reports\Model\ResourceModel\Order\Collection->getDateRange() - Error in code? (reported by @realJustmike) has been fixed in #20129 by @milindsingh in 2.3-develop branch Related commits: 1. b1b6c3c 2. 92dd7df - #20078: Magento Ui form validator message callback not supported (reported by @floorz) has been fixed in #20079 by @floorz in 2.3-develop branch Related commits: 1. be02c1e 2. dc8d2d5 3. 5cefe94
2 parents e2ca112 + 10e98bb commit c0a3931

File tree

8 files changed

+19
-11
lines changed

8 files changed

+19
-11
lines changed

app/code/Magento/Backend/App/Request/BackendValidator.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,9 @@ private function createException(
146146
$exception = new InvalidRequestException($response);
147147
} else {
148148
//For regular requests.
149+
$startPageUrl = $this->backendUrl->getStartupPageUrl();
149150
$response = $this->redirectFactory->create()
150-
->setUrl($this->backendUrl->getStartupPageUrl());
151+
->setUrl($this->backendUrl->getUrl($startPageUrl));
151152
$exception = new InvalidRequestException(
152153
$response,
153154
[

app/code/Magento/GoogleAnalytics/Block/Ga.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ public function getPageName()
7575
}
7676

7777
/**
78-
* Render regular page tracking javascript code
78+
* Render regular page tracking javascript code.
79+
*
7980
* The custom "page name" may be set from layout or somewhere else. It must start from slash.
8081
*
8182
* @param string $accountId

app/code/Magento/GoogleAnalytics/Helper/Data.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@ public function isGoogleAnalyticsAvailable($store = null)
4646
*/
4747
public function isAnonymizedIpActive($store = null)
4848
{
49-
return $this->scopeConfig->getValue(self::XML_PATH_ANONYMIZE, ScopeInterface::SCOPE_STORE, $store);
49+
return (bool)$this->scopeConfig->getValue(self::XML_PATH_ANONYMIZE, ScopeInterface::SCOPE_STORE, $store);
5050
}
5151
}

app/code/Magento/Reports/Model/ResourceModel/Order/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ public function getDateRange($range, $customStart, $customEnd, $returnObjects =
445445
break;
446446

447447
case 'custom':
448-
$dateStart = $customStart ? $customStart : $dateEnd;
448+
$dateStart = $customStart ? $customStart : $dateStart;
449449
$dateEnd = $customEnd ? $customEnd : $dateEnd;
450450
break;
451451

app/code/Magento/Robots/Model/Config/Value.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
67
namespace Magento\Robots\Model\Config;
78

89
use Magento\Framework\App\Cache\TypeListInterface;
@@ -32,12 +33,11 @@ class Value extends ConfigValue implements IdentityInterface
3233
const CACHE_TAG = 'robots';
3334

3435
/**
35-
* Model cache tag for clear cache in after save and after delete
36+
* @inheritdoc
3637
*
37-
* @var string
3838
* @since 100.2.0
3939
*/
40-
protected $_cacheTag = true;
40+
protected $_cacheTag = [self::CACHE_TAG];
4141

4242
/**
4343
* @var StoreManagerInterface

app/code/Magento/Sitemap/Model/Sitemap.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
67
namespace Magento\Sitemap\Model;
78

89
use Magento\Config\Model\Config\Reader\Source\Deployed\DocumentRoot;
@@ -15,6 +16,8 @@
1516
use Magento\Sitemap\Model\ResourceModel\Sitemap as SitemapResource;
1617

1718
/**
19+
* Sitemap model.
20+
*
1821
* @method string getSitemapType()
1922
* @method \Magento\Sitemap\Model\Sitemap setSitemapType(string $value)
2023
* @method string getSitemapFilename()
@@ -154,12 +157,11 @@ class Sitemap extends \Magento\Framework\Model\AbstractModel implements \Magento
154157
protected $dateTime;
155158

156159
/**
157-
* Model cache tag for clear cache in after save and after delete
160+
* @inheritdoc
158161
*
159-
* @var string
160162
* @since 100.2.0
161163
*/
162-
protected $_cacheTag = true;
164+
protected $_cacheTag = [Value::CACHE_TAG];
163165

164166
/**
165167
* Item resolver

app/code/Magento/Ui/view/base/web/js/lib/validation/validator.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ define([
4848
params :
4949
[params];
5050

51+
if (typeof message === 'function') {
52+
message = message.call(rule);
53+
}
54+
5155
message = params.reduce(function (msg, param, idx) {
5256
return msg.replace(new RegExp('\\{' + idx + '\\}', 'g'), param);
5357
}, message);

lib/web/mage/tabs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ define([
7272

7373
if (anchor && isValid) {
7474
$.each(self.contents, function (i) {
75-
if ($(this).attr('id') === anchorId) {
75+
if ($(this).attr('id') === anchorId || $(this).find('#' + anchorId).length) {
7676
self.collapsibles.not(self.collapsibles.eq(i)).collapsible('forceDeactivate');
7777

7878
return false;

0 commit comments

Comments
 (0)