Skip to content

Commit b31bb4f

Browse files
🔃 [Magento Community Engineering] Community Contributions - 2.3-develop
Accepted Community Pull Requests: - #23600: #19921 : ACL incorrect for Advance in system configuration (by @konarshankar07) - #24406: Remove excess line before method body (by @Tjitse-E) - #24396: fixed design issue on sales order view page frontend #24395 (by @rani-webkul) - #24286: Resolve undefined variable in ReviewPayment class (by @edenduong) - #24367: #24362 Remove page layout definition from modules (by @ochnygosch) - #24254: Fixed issue #21450 (by @geet07) - #24148: Resolve Wrong Label when create new "Attribute Set" (issue 24147) (by @edenduong) - #24420: magento/magento2#: Magento_Config module. Fix content in read file (by @atwixfirster) - #22478: Fixed Magento is no refreshing the cart page if you delete a product from cart side block (by @ravi-chandra3197) Fixed GitHub Issues: - #19921: ACL incorrect for Advance in system configuration (reported by @hackrat) has been fixed in #23600 by @konarshankar07 in 2.3-develop branch Related commits: 1. d539075 2. 493f366 3. e3e81fc - #24395: Design issue on sales order view page frontend (reported by @rani-webkul) has been fixed in #24396 by @rani-webkul in 2.3-develop branch Related commits: 1. 3cebfd3 - #24362: Unable to change page_layout of product page in theme (reported by @ochnygosch) has been fixed in #24367 by @ochnygosch in 2.3-develop branch Related commits: 1. 424cd1f - #21450: Magento 2.3 adding attributes value in url if onestep checkout is enable. (reported by @manishgoswamij) has been fixed in #24254 by @geet07 in 2.3-develop branch Related commits: 1. a234f2c - #24147: Wrong Label when create new "Attribute Set" (reported by @edenduong) has been fixed in #24148 by @edenduong in 2.3-develop branch Related commits: 1. 86434a2 2. 8e57b69 - #5246: Enable Merge CSS Files make adminl panel very slow (reported by @hungvt) has been fixed in #24420 by @atwixfirster in 2.3-develop branch Related commits: 1. 528c538 - #11292: Magento is no refreshing the cart page if you delete a product from cart side block (reported by @addison74) has been fixed in #22478 by @ravi-chandra3197 in 2.3-develop branch Related commits: 1. 60a465c 2. c08dffb 3. 7d481bd 4. ce6c228 5. b370b1e 6. bcd75f4 7. 73b9612 8. 49936ba 9. aa7ac82
2 parents 63cf5b3 + a14c101 commit b31bb4f

File tree

15 files changed

+63
-24
lines changed

15 files changed

+63
-24
lines changed

app/code/Magento/Backend/etc/adminhtml/system.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<section id="advanced" translate="label" type="text" sortOrder="910" showInDefault="0" showInWebsite="0" showInStore="0">
2424
<label>Advanced</label>
2525
<tab>advanced</tab>
26-
<resource>Magento_Backend::advanced</resource>
26+
<resource>Magento_Config::advanced</resource>
2727
<group id="modules_disable_output" translate="label" type="text" sortOrder="2" showInDefault="1" showInWebsite="1" showInStore="1">
2828
<label>Disable Modules Output</label>
2929
<frontend_model>Magento\Config\Block\System\Config\Form\Fieldset\Modules\DisableOutput</frontend_model>

app/code/Magento/Catalog/Block/Adminhtml/Product/Attribute/Set/Main/Formset.php

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,17 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Catalog\Block\Adminhtml\Product\Attribute\Set\Main;
79

810
use Magento\Backend\Block\Widget\Form;
911

12+
/**
13+
* Form attribute set
14+
*
15+
* Class \Magento\Catalog\Block\Adminhtml\Product\Attribute\Set\Main\Formset
16+
*/
1017
class Formset extends \Magento\Backend\Block\Widget\Form\Generic
1118
{
1219
/**
@@ -43,7 +50,7 @@ protected function _prepareForm()
4350

4451
/** @var \Magento\Framework\Data\Form $form */
4552
$form = $this->_formFactory->create();
46-
$fieldset = $form->addFieldset('set_name', ['legend' => __('Edit Attribute Set Name')]);
53+
$fieldset = $form->addFieldset('set_name', ['legend' => $this->getAttributeSetLabel()]);
4754
$fieldset->addField(
4855
'attribute_set_name',
4956
'text',
@@ -84,4 +91,18 @@ protected function _prepareForm()
8491
$form->setOnsubmit('return false;');
8592
$this->setForm($form);
8693
}
94+
95+
/**
96+
* Get Attribute Set Label
97+
*
98+
* @return \Magento\Framework\Phrase
99+
*/
100+
private function getAttributeSetLabel()
101+
{
102+
if ($this->getRequest()->getParam('id', false)) {
103+
return __('Edit Attribute Set Name');
104+
}
105+
106+
return __('Attribute Set Information');
107+
}
87108
}

app/code/Magento/Catalog/i18n/en_US.csv

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -813,3 +813,5 @@ Details,Details
813813
"Edit Category Design","Edit Category Design"
814814
"A total of %1 record(s) haven't been deleted. Please see server logs for more details.","A total of %1 record(s) haven't been deleted. Please see server logs for more details."
815815
"Are you sure you want to delete this category?","Are you sure you want to delete this category?"
816+
"Attribute Set Information","Attribute Set Information"
817+

app/code/Magento/Catalog/view/frontend/web/js/catalog-add-to-cart.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,9 @@ define([
135135
// trigger global event, so other modules will be able add parameters to redirect url
136136
$('body').trigger('catalogCategoryAddToCartRedirect', eventData);
137137

138-
if (eventData.redirectParameters.length > 0) {
138+
if (eventData.redirectParameters.length > 0 &&
139+
window.location.href.split(/[?#]/)[0] === res.backUrl
140+
) {
139141
parameters = res.backUrl.split('#');
140142
parameters.push(eventData.redirectParameters.join('&'));
141143
res.backUrl = parameters.join('#');

app/code/Magento/Checkout/Test/Mftf/Test/NoErrorCartCheckoutForProductsDeletedFromMiniCartTest.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@
4747
<see selector="{{StoreFrontRemoveItemModalSection.message}}" userInput="Are you sure you would like to remove this item from the shopping cart?" stepKey="seeDeleteConfirmationMessage"/>
4848
<click selector="{{StoreFrontRemoveItemModalSection.ok}}" stepKey="confirmDelete"/>
4949
<waitForPageLoad stepKey="waitForDeleteToFinish"/>
50-
<click selector="{{CheckoutCartProductSection.RemoveItem}}" stepKey="deleteProductFromCheckoutCart"/>
50+
<dontSeeElement selector="{{CheckoutCartProductSection.RemoveItem}}" stepKey="dontSeeDeleteProductFromCheckoutCart"/>
51+
<click selector="{{StorefrontMinicartSection.showCart}}" stepKey="clickCart"/>
5152
<waitForPageLoad stepKey="WaitForPageLoad3"/>
5253
<see userInput="You have no items in your shopping cart." stepKey="seeNoItemsInShoppingCart"/>
5354
</test>

app/code/Magento/Checkout/view/frontend/web/js/sidebar.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,10 @@ define([
261261
$(document).trigger('ajax:removeFromCart', {
262262
productIds: [productData['product_id']]
263263
});
264+
265+
if (window.location.href.indexOf(this.shoppingCartUrl) === 0) {
266+
window.location.reload();
267+
}
264268
}
265269
},
266270

app/code/Magento/Config/README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
#Config
1+
# Magento_Config module
2+
23
The Config module is designed to implement system configuration functionality.
3-
It provides mechanisms to add, edit, store and retrieve the configuration data
4-
for each scope (there can be a default scope as well as scopes for each website and store).
4+
It provides mechanisms to add, edit, store and retrieve the configuration data for each scope (there can be a default scope as well as scopes for each website and store).
55

6-
Modules can add items to be configured on the system configuration page by creating
7-
system.xml files in their etc/adminhtml directories. These system.xml files get merged
8-
to populate the forms in the config page.
6+
Modules can add items to be configured on the system configuration page by creating system.xml files in their etc/adminhtml directories. These system.xml files get merged to populate the forms in the config page.

app/code/Magento/Config/etc/acl.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212
<resource id="Magento_Backend::stores">
1313
<resource id="Magento_Backend::stores_settings">
1414
<resource id="Magento_Config::config" title="Configuration" translate="title" sortOrder="20">
15-
<resource id="Magento_Config::advanced" title="Advanced Section" translate="title" sortOrder="90" />
15+
<!--
16+
@deprecated Magento_Config::advanced section ('Advanced Section') is disabled and is not displayed in the admin panel
17+
-->
18+
<resource id="Magento_Config::advanced" title="Advanced Section" translate="title" sortOrder="90" disabled="true" />
1619
<resource id="Magento_Config::config_admin" title="Advanced Admin Section" translate="title" sortOrder="100" />
1720
<resource id="Magento_Config::config_design" title="Design Section" translate="title" sortOrder="40" />
1821
<resource id="Magento_Config::config_general" title="General Section" translate="title" sortOrder="20" />

app/code/Magento/InstantPurchase/view/frontend/layout/catalog_product_view.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* See COPYING.txt for license details.
66
*/
77
-->
8-
<page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
8+
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
99
<body>
1010
<referenceBlock name="product.info.addtocart">
1111
<block name="product.info.addtocart.instantPurchase" class="Magento\InstantPurchase\Block\Button" template="Magento_InstantPurchase::button.phtml" before="-">

app/code/Magento/Msrp/view/frontend/layout/catalog_product_view.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* See COPYING.txt for license details.
66
*/
77
-->
8-
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
8+
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
99
<!--<update handle="MAP_price_msrp_item"/>-->
1010
<update handle="msrp_popup"/>
1111
<body>

app/code/Magento/ProductVideo/view/frontend/layout/catalog_product_view.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* See COPYING.txt for license details.
66
*/
77
-->
8-
<page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
8+
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
99
<body>
1010
<referenceContainer name="product.info.media">
1111
<block class="Magento\ProductVideo\Block\Product\View\Gallery" name="product.info.media.video" after="product.info.media.image" template="Magento_ProductVideo::product/view/gallery.phtml"/>

app/code/Magento/Sales/Controller/Adminhtml/Order/ReviewPayment.php

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,18 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
7+
declare(strict_types=1);
8+
69
namespace Magento\Sales\Controller\Adminhtml\Order;
710

811
use Magento\Backend\App\Action;
12+
use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;
913

10-
class ReviewPayment extends \Magento\Sales\Controller\Adminhtml\Order
14+
/**
15+
* Class \Magento\Sales\Controller\Adminhtml\Order\ReviewPayment
16+
*/
17+
class ReviewPayment extends \Magento\Sales\Controller\Adminhtml\Order implements HttpGetActionInterface
1118
{
1219
/**
1320
* Authorization level of a basic admin session
@@ -21,7 +28,7 @@ class ReviewPayment extends \Magento\Sales\Controller\Adminhtml\Order
2128
*
2229
* Either denies or approves a payment that is in "review" state
2330
*
24-
* @return \Magento\Backend\Model\View\Result\Redirect
31+
* @return \Magento\Framework\Controller\Result\Redirect
2532
*/
2633
public function execute()
2734
{
@@ -50,21 +57,23 @@ public function execute()
5057
}
5158
break;
5259
default:
53-
throw new \Exception(sprintf('Action "%s" is not supported.', $action));
60+
throw new \Magento\Framework\Exception\NotFoundException(
61+
__('Action "%1" is not supported.', $action)
62+
);
5463
}
5564
$this->orderRepository->save($order);
5665
$this->messageManager->addSuccessMessage($message);
66+
$resultRedirect->setPath('sales/order/view', ['order_id' => $order->getEntityId()]);
5767
} else {
5868
$resultRedirect->setPath('sales/*/');
5969
return $resultRedirect;
6070
}
71+
// phpcs:ignore Magento2.Exceptions.ThrowCatch
6172
} catch (\Magento\Framework\Exception\LocalizedException $e) {
62-
$this->messageManager->addErrorMessage($e->getMessage());
63-
} catch (\Exception $e) {
6473
$this->messageManager->addErrorMessage(__('We can\'t update the payment right now.'));
6574
$this->logger->critical($e);
75+
$resultRedirect->setPath('sales/*/');
6676
}
67-
$resultRedirect->setPath('sales/order/view', ['order_id' => $order->getEntityId()]);
6877
return $resultRedirect;
6978
}
7079
}

app/code/Magento/Sales/view/frontend/templates/order/items.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@
2929
</thead>
3030
<?php $items = $block->getItems(); ?>
3131
<?php $giftMessage = ''?>
32-
<tbody>
3332
<?php foreach ($items as $item) :
3433
if ($item->getParentItem()) :
3534
continue;
3635
endif;
3736
?>
37+
<tbody>
3838
<?= $block->getItemHtml($item) ?>
3939
<?php if ($this->helper(\Magento\GiftMessage\Helper\Message::class)->isMessagesAllowed('order_item', $item) && $item->getGiftMessageId()) : ?>
4040
<?php $giftMessage = $this->helper(\Magento\GiftMessage\Helper\Message::class)->getGiftMessageForEntity($item); ?>
@@ -65,8 +65,8 @@
6565
</td>
6666
</tr>
6767
<?php endif ?>
68+
</tbody>
6869
<?php endforeach; ?>
69-
</tbody>
7070
<tfoot>
7171
<?php if ($block->isPagerDisplayed()) : ?>
7272
<tr>

lib/internal/Magento/Framework/View/Design/FileResolution/Fallback/Resolver/Simple.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ public function __construct(ReadFactory $readFactory, RulePool $rulePool)
5454
*/
5555
public function resolve($type, $file, $area = null, ThemeInterface $theme = null, $locale = null, $module = null)
5656
{
57-
5857
$params = ['area' => $area, 'theme' => $theme, 'locale' => $locale];
5958
foreach ($params as $key => $param) {
6059
if ($param === null) {

setup/src/Magento/Setup/Test/Unit/Module/Di/_files/app/code/Magento/SomeModule/etc/adminhtml/system.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<section id="advanced" translate="label" type="text" sortOrder="910" showInDefault="1" showInWebsite="1" showInStore="1">
1111
<label>Advanced</label>
1212
<tab>advanced</tab>
13-
<resource>Magento_Backend::advanced</resource>
13+
<resource>Magento_Config::advanced</resource>
1414
<group id="modules_disable_output" translate="label" type="text" sortOrder="2" showInDefault="1" showInWebsite="1" showInStore="1">
1515
<label>Disable Modules Output</label>
1616
<frontend_model>Magento\Config\Block\System\Config\Form\Fieldset\Modules\DisableOutput\Proxy</frontend_model>

0 commit comments

Comments
 (0)