Skip to content

Commit 23bc18f

Browse files
🔃 [EngCom] Public Pull Requests - 2.3-develop Minor Fixes
Accepted Public Pull Requests: - #21054: Add missing php doc cookie class (by @XxXgeoXxX) - #21084: Removing extra comma from construct params (by @williankeller) - #20829: Fixed issue #20828 Newsletter Problem Grid Filter issue (by @GovindaSharma) - #21047: [Forwardport] resolve typo errors for js record.js (by @mage2pratik) - #21048: [SendFriend] Covering the Send to friend by integration tests (by @eduard13) - #21033: Add missing php doc params to ConvertSerializedDataToJson class constructor (by @maddumarala) - #20155: My-account-page-Recently-Ordered-check-box-misaligned-on-tab-portrait� (by @ajay2jcommerce) - #21036: Added RewriteBase directive template in .htaccess file into pub/media folder (by @ccasciotti) - #21035: Issue Fixed #21034: Invalid return type in docstring (by @milindsingh) - #18981: Fix for currency update in crontab area (by @denispapec) - #21028: [Checkout] Covering the successfully adding a valid coupon to cart by an integra� (by @eduard13) - #21029: Add missing php doc engineresolver class (by @dominicfernando) - #20990: Solve custom option dropdown issue (by @dharmendra-wagento) - #20995: Removing comma from construct params (by @williankeller) - #20817: Orders-and-Returns-layout-not-proper (by @amol2jcommerce) - #20801: Fixes-for-account-my-recent-reviews-alignment (by @priti2jcommerce) - #20820: [Reports] Fixed refreshing the reports statistics (by @eduard13) - #20962: Extra space from left in top message section (Notification section) (by @cedarvinda) - #20874: Email to a Friend form not full responsive and remove link not positi� (by @cedarvinda) - #20913: Solved swagger response of product attribute option is_default (by @hiren-wagento) - #20914: Fixed issue #20911 In admin login password forgot password page wrong css used to make it vertially aling middle (by @GovindaSharma) - #20967: Fixed redirection issue in Admin-> Content -> Schedule (by @dominicfernando) - #20548: Fixes incorrect country code being used for Greek VAT numbers, should� (by @hostep) - #20930: Fixed Issue #20908 error message icon alignment mm19in (by @kunj1988) - #20956: Admin store view label not alignment (by @amol2jcommerce) - #20936: Issue #20924 - fix Pending Reviews label, add menu for pending review� (by @dankhrapiyush) - #20907: Magento backend catalog cost without currency symbol (by @mage2pratik) - #20808: Adjust table for grouped products (by @mageho) - #20558: fixes-customer-information-wishlist-configurable-product-alignment (by @priti2jcommerce) Fixed GitHub Issues: - #20828: Newsletter Problem Grid Filter issue (reported by @mohammadzakir) has been fixed in #20829 by @GovindaSharma in 2.3-develop branch Related commits: 1. dd48394 2. 8ea63dd 3. 273d95a - #20143: My account page "Recently Ordered" check box misaligned on tab portrait view (reported by @ajay2jcommerce) has been fixed in #20155 by @ajay2jcommerce in 2.3-develop branch Related commits: 1. 5515f7e 2. 15ddead 3. 12c7e05 4. 57df489 - #21034: Magento\Framework\HTTP\PhpEnvironment\Request::getHeader() has incorrect return type in dockblock (reported by @kanduvisla) has been fixed in #21035 by @milindsingh in 2.3-develop branch Related commits: 1. e64dbcb 2. 666c63c - #18580: Currency rates not updated by crontab (reported by @jcourtei) has been fixed in #18981 by @denispapec in 2.3-develop branch Related commits: 1. c0df2e4 - #20989: Admin Customizable Options Dropdown sort_order issue (reported by @dharmendra-wagento) has been fixed in #20990 by @dharmendra-wagento in 2.3-develop branch Related commits: 1. 734c440 - #20816: Orders and Returns layout not proper (reported by @yashwant2jcommerce) has been fixed in #20817 by @amol2jcommerce in 2.3-develop branch Related commits: 1. 604ab26 - #20800: On account my recent reviews alignment issue (reported by @priti2jcommerce) has been fixed in #20801 by @priti2jcommerce in 2.3-develop branch Related commits: 1. 3dc4f9b - #20819: [Reports] Refresh Reports Lifetime Statistics action redirects to 404 (reported by @eduard13) has been fixed in #20820 by @eduard13 in 2.3-develop branch Related commits: 1. fd28eb0 2. 8a276c1 - #18525: Incorrect Swager Definition for eav-data-attribute-option-interface (reported by @vetshopdeveloper) has been fixed in #20913 by @hiren-wagento in 2.3-develop branch Related commits: 1. 1e77ebe - #20911: In admin login password forgot password page wrong css used to make it vertially aling middle (reported by @cedarvinda) has been fixed in #20914 by @GovindaSharma in 2.3-develop branch Related commits: 1. e92b9a3 - #6960: Greek vat numbers cannot be validated (reported by @schnappenberger) has been fixed in #20548 by @hostep in 2.3-develop branch Related commits: 1. 3ed5efb - #20908: Bundle product edit/add page error message icon alignment is not proper at 'Customizable Options' (reported by @kunj1988) has been fixed in #20930 by @kunj1988 in 2.3-develop branch Related commits: 1. b715afa - #20924: Reviews ACL issue - showing Reviews menu two times under System > User Roles > Add New Role > Role Resources (reported by @dankhrapiyush) has been fixed in #20936 by @dankhrapiyush in 2.3-develop branch Related commits: 1. 01d68c6 2. 0b5e0e2 3. a4d81ca - #20906: Magento backend catalog "Cost" without currency symbol (reported by @mage2pratik) has been fixed in #20907 by @mage2pratik in 2.3-develop branch Related commits: 1. 85beeec - #20760: Admin Customer configuraion in whishlist associated product for configurable product misalign (reported by @nainesh2jcommerce) has been fixed in #20558 by @priti2jcommerce in 2.3-develop branch Related commits: 1. 7495afb 2. 565f625
2 parents 4e11084 + 48cfb71 commit 23bc18f

File tree

39 files changed

+362
-58
lines changed

39 files changed

+362
-58
lines changed

app/code/Magento/Backend/Controller/Adminhtml/System/Design/Save.php

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@
66
*/
77
namespace Magento\Backend\Controller\Adminhtml\System\Design;
88

9-
class Save extends \Magento\Backend\Controller\Adminhtml\System\Design
9+
use Magento\Framework\App\Action\HttpPostActionInterface;
10+
11+
/**
12+
* Save design action.
13+
*/
14+
class Save extends \Magento\Backend\Controller\Adminhtml\System\Design implements HttpPostActionInterface
1015
{
1116
/**
1217
* Filtering posted data. Converting localized data if needed
@@ -26,6 +31,8 @@ protected function _filterPostData($data)
2631
}
2732

2833
/**
34+
* Save design action.
35+
*
2936
* @return \Magento\Backend\Model\View\Result\Redirect
3037
*/
3138
public function execute()
@@ -54,10 +61,10 @@ public function execute()
5461
} catch (\Exception $e) {
5562
$this->messageManager->addErrorMessage($e->getMessage());
5663
$this->_objectManager->get(\Magento\Backend\Model\Session::class)->setDesignData($data);
57-
return $resultRedirect->setPath('adminhtml/*/', ['id' => $design->getId()]);
64+
return $resultRedirect->setPath('*/*/edit', ['id' => $design->getId()]);
5865
}
5966
}
6067

61-
return $resultRedirect->setPath('adminhtml/*/');
68+
return $resultRedirect->setPath('*/*/');
6269
}
6370
}

app/code/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier/CustomOptions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use Magento\Catalog\Model\Config\Source\Product\Options\Price as ProductOptionsPrice;
1212
use Magento\Framework\UrlInterface;
1313
use Magento\Framework\Stdlib\ArrayManager;
14+
use Magento\Ui\Component\Form\Element\Hidden;
1415
use Magento\Ui\Component\Modal;
1516
use Magento\Ui\Component\Container;
1617
use Magento\Ui\Component\DynamicRows;
@@ -867,10 +868,9 @@ protected function getPositionFieldConfig($sortOrder)
867868
'data' => [
868869
'config' => [
869870
'componentType' => Field::NAME,
870-
'formElement' => Input::NAME,
871+
'formElement' => Hidden::NAME,
871872
'dataScope' => static::FIELD_SORT_ORDER_NAME,
872873
'dataType' => Number::NAME,
873-
'visible' => false,
874874
'sortOrder' => $sortOrder,
875875
],
876876
],

app/code/Magento/Catalog/view/adminhtml/ui_component/product_listing.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,13 @@
190190
<label translate="true">Websites</label>
191191
</settings>
192192
</column>
193+
<column name="cost" class="Magento\Catalog\Ui\Component\Listing\Columns\Price" sortOrder="120">
194+
<settings>
195+
<addField>true</addField>
196+
<filter>textRange</filter>
197+
<label translate="true">Cost</label>
198+
</settings>
199+
</column>
193200
<actionsColumn name="actions" class="Magento\Catalog\Ui\Component\Listing\Columns\ProductActions" sortOrder="200">
194201
<settings>
195202
<indexField>entity_id</indexField>

app/code/Magento/ConfigurableProduct/view/adminhtml/templates/catalog/product/composite/fieldset/configurable.phtml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
<legend class="legend admin__legend">
1818
<span><?= /* @escapeNotVerified */ __('Associated Products') ?></span>
1919
</legend>
20-
<div class="product-options">
21-
<div class="field admin__field _required required">
22-
<?php foreach ($_attributes as $_attribute): ?>
20+
<div class="product-options fieldset admin__fieldset">
21+
<?php foreach ($_attributes as $_attribute): ?>
22+
<div class="field admin__field _required required">
2323
<label class="label admin__field-label"><?php
2424
/* @escapeNotVerified */ echo $_attribute->getProductAttribute()
2525
->getStoreLabel($_product->getStoreId());
@@ -34,8 +34,8 @@
3434
<option><?= /* @escapeNotVerified */ __('Choose an Option...') ?></option>
3535
</select>
3636
</div>
37-
<?php endforeach; ?>
38-
</div>
37+
</div>
38+
<?php endforeach; ?>
3939
</div>
4040
</fieldset>
4141
<script>

app/code/Magento/Cookie/Helper/Cookie.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ class Cookie extends \Magento\Framework\App\Helper\AbstractHelper
4242
* @param \Magento\Store\Model\StoreManagerInterface $storeManager
4343
* @param array $data
4444
*
45-
* @throws \InvalidArgumentException
45+
* @throws \Magento\Framework\Exception\LocalizedException
46+
* @throws \Magento\Framework\Exception\NoSuchEntityException
4647
*/
4748
public function __construct(
4849
\Magento\Framework\App\Helper\Context $context,

app/code/Magento/Customer/Model/ResourceModel/Group.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ class Group extends \Magento\Framework\Model\ResourceModel\Db\VersionControl\Abs
2929

3030
/**
3131
* @param \Magento\Framework\Model\ResourceModel\Db\Context $context
32-
* @param Snapshot $entitySnapshot,
33-
* @param RelationComposite $entityRelationComposite,
32+
* @param Snapshot $entitySnapshot
33+
* @param RelationComposite $entityRelationComposite
3434
* @param \Magento\Customer\Api\GroupManagementInterface $groupManagement
3535
* @param Customer\CollectionFactory $customersFactory
3636
* @param string $connectionName
@@ -110,6 +110,8 @@ protected function _afterDelete(\Magento\Framework\Model\AbstractModel $group)
110110
}
111111

112112
/**
113+
* Create customers collection.
114+
*
113115
* @return \Magento\Customer\Model\ResourceModel\Customer\Collection
114116
*/
115117
protected function _createCustomersCollection()
@@ -131,7 +133,7 @@ protected function _beforeSave(\Magento\Framework\Model\AbstractModel $group)
131133
}
132134

133135
/**
134-
* {@inheritdoc}
136+
* @inheritdoc
135137
*/
136138
protected function _afterSave(\Magento\Framework\Model\AbstractModel $object)
137139
{

app/code/Magento/Customer/Model/Vat.php

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,18 +179,21 @@ public function checkVatNumber($countryCode, $vatNumber, $requesterCountryCode =
179179
return $gatewayResponse;
180180
}
181181

182+
$countryCodeForVatNumber = $this->getCountryCodeForVatNumber($countryCode);
183+
$requesterCountryCodeForVatNumber = $this->getCountryCodeForVatNumber($requesterCountryCode);
184+
182185
try {
183186
$soapClient = $this->createVatNumberValidationSoapClient();
184187

185188
$requestParams = [];
186-
$requestParams['countryCode'] = $countryCode;
189+
$requestParams['countryCode'] = $countryCodeForVatNumber;
187190
$vatNumberSanitized = $this->isCountryInEU($countryCode)
188-
? str_replace([' ', '-', $countryCode], ['', '', ''], $vatNumber)
191+
? str_replace([' ', '-', $countryCodeForVatNumber], ['', '', ''], $vatNumber)
189192
: str_replace([' ', '-'], ['', ''], $vatNumber);
190193
$requestParams['vatNumber'] = $vatNumberSanitized;
191-
$requestParams['requesterCountryCode'] = $requesterCountryCode;
194+
$requestParams['requesterCountryCode'] = $requesterCountryCodeForVatNumber;
192195
$reqVatNumSanitized = $this->isCountryInEU($requesterCountryCode)
193-
? str_replace([' ', '-', $requesterCountryCode], ['', '', ''], $requesterVatNumber)
196+
? str_replace([' ', '-', $requesterCountryCodeForVatNumber], ['', '', ''], $requesterVatNumber)
194197
: str_replace([' ', '-'], ['', ''], $requesterVatNumber);
195198
$requestParams['requesterVatNumber'] = $reqVatNumSanitized;
196199
// Send request to service
@@ -301,4 +304,22 @@ public function isCountryInEU($countryCode, $storeId = null)
301304
);
302305
return in_array($countryCode, $euCountries);
303306
}
307+
308+
/**
309+
* Returns the country code to use in the VAT number which is not always the same as the normal country code
310+
*
311+
* @param string $countryCode
312+
* @return string
313+
*/
314+
private function getCountryCodeForVatNumber(string $countryCode): string
315+
{
316+
// Greece uses a different code for VAT numbers then its country code
317+
// See: http://ec.europa.eu/taxation_customs/vies/faq.html#item_11
318+
// And https://en.wikipedia.org/wiki/VAT_identification_number:
319+
// "The full identifier starts with an ISO 3166-1 alpha-2 (2 letters) country code
320+
// (except for Greece, which uses the ISO 639-1 language code EL for the Greek language,
321+
// instead of its ISO 3166-1 alpha-2 country code GR)"
322+
323+
return $countryCode === 'GR' ? 'EL' : $countryCode;
324+
}
304325
}

app/code/Magento/Directory/Model/CurrencyConfig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function __construct(
5757
*/
5858
public function getConfigCurrencies(string $path)
5959
{
60-
$result = $this->appState->getAreaCode() === Area::AREA_ADMINHTML
60+
$result = in_array($this->appState->getAreaCode(), [Area::AREA_ADMINHTML, Area::AREA_CRONTAB])
6161
? $this->getConfigForAllStores($path)
6262
: $this->getConfigForCurrentStore($path);
6363
sort($result);

app/code/Magento/Directory/Model/ResourceModel/Country/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ private function addDefaultCountryToOptions(array &$options)
327327

328328
foreach ($options as $key => $option) {
329329
if (isset($defaultCountry[$option['value']])) {
330-
$options[$key]['is_default'] = $defaultCountry[$option['value']];
330+
$options[$key]['is_default'] = !empty($defaultCountry[$option['value']]);
331331
}
332332
}
333333
}

app/code/Magento/Directory/Test/Unit/Model/CurrencyConfigTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ protected function setUp()
6868
}
6969

7070
/**
71-
* Test get currency config for admin and storefront areas.
71+
* Test get currency config for admin, crontab and storefront areas.
7272
*
7373
* @dataProvider getConfigCurrenciesDataProvider
7474
* @return void
@@ -91,7 +91,7 @@ public function testGetConfigCurrencies(string $areCode)
9191
->method('getCode')
9292
->willReturn('testCode');
9393

94-
if ($areCode === Area::AREA_ADMINHTML) {
94+
if (in_array($areCode, [Area::AREA_ADMINHTML, Area::AREA_CRONTAB])) {
9595
$this->storeManager->expects(self::once())
9696
->method('getStores')
9797
->willReturn([$store]);
@@ -121,6 +121,7 @@ public function getConfigCurrenciesDataProvider()
121121
{
122122
return [
123123
['areaCode' => Area::AREA_ADMINHTML],
124+
['areaCode' => Area::AREA_CRONTAB],
124125
['areaCode' => Area::AREA_FRONTEND],
125126
];
126127
}

app/code/Magento/GroupedProduct/view/frontend/templates/product/view/type/grouped.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
</thead>
3434

3535
<?php if ($_hasAssociatedProducts): ?>
36-
<?php foreach ($_associatedProducts as $_item): ?>
3736
<tbody>
37+
<?php foreach ($_associatedProducts as $_item): ?>
3838
<tr>
3939
<td data-th="<?= $block->escapeHtml(__('Product Name')) ?>" class="col item">
4040
<strong class="product-item-name"><?= $block->escapeHtml($_item->getName()) ?></strong>
@@ -80,8 +80,8 @@
8080
</td>
8181
</tr>
8282
<?php endif; ?>
83-
</tbody>
8483
<?php endforeach; ?>
84+
</tbody>
8585
<?php else: ?>
8686
<tbody>
8787
<tr>

app/code/Magento/Newsletter/view/adminhtml/layout/newsletter_problem_block.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<argument name="message_block_visibility" xsi:type="string">true</argument>
1616
<argument name="use_ajax" xsi:type="string">true</argument>
1717
<argument name="save_parameters_in_session" xsi:type="string">1</argument>
18+
<argument name="grid_url" xsi:type="url" path="*/*/grid"/>
1819
</arguments>
1920
<block class="Magento\Backend\Block\Widget\Grid\ColumnSet" name="adminhtml.newslettrer.problem.grid.columnSet" as="grid.columnSet">
2021
<arguments>

app/code/Magento/Quote/Model/ResourceModel/Quote.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ class Quote extends AbstractDb
2323

2424
/**
2525
* @param \Magento\Framework\Model\ResourceModel\Db\Context $context
26-
* @param Snapshot $entitySnapshot,
27-
* @param RelationComposite $entityRelationComposite,
26+
* @param Snapshot $entitySnapshot
27+
* @param RelationComposite $entityRelationComposite
2828
* @param \Magento\SalesSequence\Model\Manager $sequenceManager
2929
* @param string $connectionName
3030
*/
@@ -296,7 +296,7 @@ public function markQuotesRecollect($productIds)
296296
}
297297

298298
/**
299-
* {@inheritdoc}
299+
* @inheritdoc
300300
*/
301301
public function save(\Magento\Framework\Model\AbstractModel $object)
302302
{

app/code/Magento/Quote/Setup/Patch/Data/ConvertSerializedDataToJson.php

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,15 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6-
76
namespace Magento\Quote\Setup\Patch\Data;
87

9-
use Magento\Framework\App\ResourceConnection;
108
use Magento\Quote\Setup\ConvertSerializedDataToJsonFactory;
119
use Magento\Quote\Setup\QuoteSetupFactory;
1210
use Magento\Framework\Setup\Patch\DataPatchInterface;
1311
use Magento\Framework\Setup\Patch\PatchVersionInterface;
1412

1513
/**
16-
* Class ConvertSerializedDataToJson
17-
* @package Magento\Quote\Setup\Patch
14+
* Convert quote serialized data to json.
1815
*/
1916
class ConvertSerializedDataToJson implements DataPatchInterface, PatchVersionInterface
2017
{
@@ -36,6 +33,8 @@ class ConvertSerializedDataToJson implements DataPatchInterface, PatchVersionInt
3633
/**
3734
* PatchInitial constructor.
3835
* @param \Magento\Framework\Setup\ModuleDataSetupInterface $moduleDataSetup
36+
* @param QuoteSetupFactory $quoteSetupFactory
37+
* @param ConvertSerializedDataToJsonFactory $convertSerializedDataToJsonFactory
3938
*/
4039
public function __construct(
4140
\Magento\Framework\Setup\ModuleDataSetupInterface $moduleDataSetup,
@@ -48,7 +47,7 @@ public function __construct(
4847
}
4948

5049
/**
51-
* {@inheritdoc}
50+
* @inheritdoc
5251
*/
5352
public function apply()
5453
{
@@ -57,7 +56,7 @@ public function apply()
5756
}
5857

5958
/**
60-
* {@inheritdoc}
59+
* @inheritdoc
6160
*/
6261
public static function getDependencies()
6362
{
@@ -67,15 +66,15 @@ public static function getDependencies()
6766
}
6867

6968
/**
70-
* {@inheritdoc}
69+
* @inheritdoc
7170
*/
7271
public static function getVersion()
7372
{
7473
return '2.0.6';
7574
}
7675

7776
/**
78-
* {@inheritdoc}
77+
* @inheritdoc
7978
*/
8079
public function getAliases()
8180
{

app/code/Magento/Reports/Controller/Adminhtml/Report/Statistics/RefreshLifetime.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
<?php
22
/**
3-
*
43
* Copyright © Magento, Inc. All rights reserved.
54
* See COPYING.txt for license details.
65
*/
76
namespace Magento\Reports\Controller\Adminhtml\Report\Statistics;
87

9-
class RefreshLifetime extends \Magento\Reports\Controller\Adminhtml\Report\Statistics
8+
use Magento\Framework\App\Action\HttpPostActionInterface as HttpPostActionInterface;
9+
use Magento\Reports\Controller\Adminhtml\Report\Statistics;
10+
11+
/**
12+
* Refresh statistics action.
13+
*/
14+
class RefreshLifetime extends Statistics implements HttpPostActionInterface
1015
{
1116
/**
1217
* Refresh statistics for all period

app/code/Magento/Review/Block/Adminhtml/Edit.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,13 +159,13 @@ protected function _construct()
159159
}
160160

161161
if ($this->getRequest()->getParam('ret', false) == 'pending') {
162-
$this->buttonList->update('back', 'onclick', 'setLocation(\'' . $this->getUrl('catalog/*/pending') . '\')');
162+
$this->buttonList->update('back', 'onclick', 'setLocation(\'' . $this->getUrl('review/*/pending') . '\')');
163163
$this->buttonList->update(
164164
'delete',
165165
'onclick',
166166
'deleteConfirm(' . '\'' . __(
167167
'Are you sure you want to do this?'
168-
) . '\' ' . '\'' . $this->getUrl(
168+
) . '\', ' . '\'' . $this->getUrl(
169169
'*/*/delete',
170170
[$this->_objectId => $this->getRequest()->getParam($this->_objectId), 'ret' => 'pending']
171171
) . '\'' . ')'

app/code/Magento/Review/Controller/Adminhtml/Product/Save.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,14 @@
1010
use Magento\Framework\Controller\ResultFactory;
1111
use Magento\Framework\Exception\LocalizedException;
1212

13+
/**
14+
* Save Review action.
15+
*/
1316
class Save extends ProductController implements HttpPostActionInterface
1417
{
1518
/**
19+
* Save Review action.
20+
*
1621
* @return \Magento\Backend\Model\View\Result\Redirect
1722
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
1823
*/
@@ -64,7 +69,7 @@ public function execute()
6469
if ($nextId) {
6570
$resultRedirect->setPath('review/*/edit', ['id' => $nextId]);
6671
} elseif ($this->getRequest()->getParam('ret') == 'pending') {
67-
$resultRedirect->setPath('*/*/pending');
72+
$resultRedirect->setPath('review/*/pending');
6873
} else {
6974
$resultRedirect->setPath('*/*/');
7075
}

0 commit comments

Comments
 (0)