Skip to content

Commit 96c3e42

Browse files
🔃 [EngCom] Public Pull Requests - 2.1-develop
Accepted Public Pull Requests: - #15102: [Backport] Move customer.account.dashboard.info.extra block to contact information (by @sergiy-v) - #15106: [Backport] use "Module_Name::template/path" format instead of using template/path (by @sergiy-v) - #15066: [Backport] Add statement to 'beforeSave' method to allow app:config:import (by @rogyar)
2 parents 1a58020 + 72e02f0 commit 96c3e42

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

app/code/Magento/Braintree/Model/Adminhtml/System/Config/CountryCreditCard.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,13 @@ public function __construct(
5656
public function beforeSave()
5757
{
5858
$value = $this->getValue();
59+
if (!is_array($value)) {
60+
try {
61+
$value = unserialize($value);
62+
} catch (\InvalidArgumentException $e) {
63+
$value = [];
64+
}
65+
}
5966
$result = [];
6067
foreach ($value as $data) {
6168
if (empty($data['country_id']) || empty($data['cc_types'])) {

app/code/Magento/Customer/view/frontend/templates/account/dashboard/info.phtml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
<?php echo $block->escapeHtml($block->getName()) ?><br>
2121
<?php echo $block->escapeHtml($block->getCustomer()->getEmail()) ?><br>
2222
</p>
23+
<?php echo $block->getChildHtml('customer.account.dashboard.info.extra'); ?>
2324
</div>
2425
<div class="box-actions">
2526
<a class="action edit" href="<?php echo $block->escapeUrl($block->getUrl('customer/account/edit')) ?>">
@@ -43,8 +44,6 @@
4344
<?php echo $block->escapeHtml(__('You don\'t subscribe to our newsletter.')) ?>
4445
<?php endif; ?>
4546
</p>
46-
<?php /* Extensions placeholder */ ?>
47-
<?php echo $block->getChildHtml('customer.account.dashboard.info.extra')?>
4847
</div>
4948
<div class="box-actions">
5049
<a class="action edit" href="<?php echo $block->escapeUrl($block->getUrl('newsletter/manage')) ?>"><span><?php echo $block->escapeHtml(__('Edit')) ?></span></a>

app/code/Magento/Review/Block/Product/ReviewRenderer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ class ReviewRenderer extends \Magento\Framework\View\Element\Template implements
1818
* @var array
1919
*/
2020
protected $_availableTemplates = [
21-
self::FULL_VIEW => 'helper/summary.phtml',
22-
self::SHORT_VIEW => 'helper/summary_short.phtml',
21+
self::FULL_VIEW => 'Magento_Review::helper/summary.phtml',
22+
self::SHORT_VIEW => 'Magento_Review::helper/summary_short.phtml',
2323
];
2424

2525
/**

0 commit comments

Comments
 (0)