Skip to content

Commit 97b98cc

Browse files
🔃 [EngCom] Public Pull Requests - 2.2-develop
Accepted Public Pull Requests: - #19340: [Backport] Fix the issue: Content overlaps the close button #19263 (by @gelanivishal) - #19336: [Backport] small performance improvement on product listing (by @gelanivishal) - #19337: [Backport] 19082-Fatal-error-Uncaught-Error-Cannot-call-abstract-method-Magento-� (by @agorbulin) - #19338: [Backport] missing use statement in layout generator (by @gelanivishal) - #19068: Using Media Image custom attribute type could not display on frontend. #19054 (by @Nazar65) Fixed GitHub Issues: - #19263: Broken backend popup view (reported by @dmytro-ch) has been fixed in #19340 by @gelanivishal in 2.2-develop branch Related commits: 1. 27c265d 2. 4b70893 - #19082: Fatal error: Uncaught Error: Cannot call abstract method Magento\Framework\App\ActionInterface::execute() (reported by @kanhaiya5590) has been fixed in #19337 by @agorbulin in 2.2-develop branch Related commits: 1. 20922a0 - #19054: Using Media Image custom attribute type could not display on frontend. (reported by @nimitaemipro) has been fixed in #19068 by @Nazar65 in 2.2-develop branch Related commits: 1. e3134ea
2 parents 13de5a7 + 57d6b3b commit 97b98cc

File tree

5 files changed

+24
-1
lines changed

5 files changed

+24
-1
lines changed

app/code/Magento/Catalog/Controller/Product/Compare.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,4 +139,12 @@ public function setCustomerId($customerId)
139139
$this->_customerId = $customerId;
140140
return $this;
141141
}
142+
143+
/**
144+
* {@inheritdoc}
145+
*/
146+
public function execute()
147+
{
148+
return $this->_redirect('catalog/product_compare');
149+
}
142150
}

app/code/Magento/Eav/Model/Entity/Attribute.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,12 @@ public function beforeSave()
287287
}
288288
}
289289

290+
if ($this->getFrontendInput() == 'media_image') {
291+
if (!$this->getFrontendModel()) {
292+
$this->setFrontendModel(\Magento\Catalog\Model\Product\Attribute\Frontend\Image::class);
293+
}
294+
}
295+
290296
if ($this->getBackendType() == 'gallery') {
291297
if (!$this->getBackendModel()) {
292298
$this->setBackendModel(\Magento\Eav\Model\Entity\Attribute\Backend\DefaultBackend::class);

app/code/Magento/Review/Model/Review.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66
namespace Magento\Review\Model;
77

8+
use Magento\Framework\DataObject;
89
use Magento\Catalog\Model\Product;
910
use Magento\Framework\DataObject\IdentityInterface;
1011
use Magento\Review\Model\ResourceModel\Review\Product\Collection as ProductCollection;
@@ -327,6 +328,9 @@ public function appendSummary($collection)
327328
$item->setRatingSummary($summary);
328329
}
329330
}
331+
if (!$item->getRatingSummary()) {
332+
$item->setRatingSummary(new DataObject());
333+
}
330334
}
331335

332336
return $this;

lib/internal/Magento/Framework/View/Layout/Generator/Block.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
namespace Magento\Framework\View\Layout\Generator;
77

88
use Magento\Framework\App\State;
9+
use Magento\Framework\Exception\LocalizedException;
910
use Magento\Framework\ObjectManager\Config\Reader\Dom;
1011
use Magento\Framework\View\Element\Template;
1112
use Magento\Framework\View\Layout;
@@ -272,7 +273,7 @@ protected function getBlockInstance($block, array $arguments = [])
272273
}
273274
}
274275
if (!$block instanceof \Magento\Framework\View\Element\AbstractBlock) {
275-
throw new \Magento\Framework\Exception\LocalizedException(
276+
throw new LocalizedException(
276277
new \Magento\Framework\Phrase(
277278
'Invalid block type: %1',
278279
[is_object($block) ? get_class($block) : (string) $block]

lib/web/css/source/components/_modals.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@
103103
&.confirm {
104104
.modal-inner-wrap {
105105
.lib-css(width, @modal-popup-confirm__width);
106+
107+
.modal-content {
108+
padding-right: 7rem;
109+
}
106110
}
107111
}
108112

0 commit comments

Comments
 (0)