Skip to content

Commit d73b8a9

Browse files
committed
Merge branch 'ACP2E-3490' of https://github.com/adobe-commerce-tier-4/magento2ce into PR-12-05-2024
2 parents f7fd472 + 344a569 commit d73b8a9

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

app/code/Magento/CatalogWidget/Block/Product/ProductsList.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2014 Adobe
4+
* All Rights Reserved.
55
*/
66

77
namespace Magento\CatalogWidget\Block\Product;
@@ -621,4 +621,12 @@ private function decodeConditions(string $encodedConditions): array
621621
{
622622
return $this->conditionsHelper->decode(htmlspecialchars_decode($encodedConditions));
623623
}
624+
625+
/**
626+
* @inheritdoc
627+
*/
628+
protected function _afterToHtml($html)
629+
{
630+
return trim($html);
631+
}
624632
}

app/code/Magento/CatalogWidget/Test/Unit/Block/Product/ProductsListTest.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2014 Adobe
4+
* All Rights Reserved.
55
*/
66
declare(strict_types=1);
77

@@ -29,7 +29,6 @@
2929
use Magento\Rule\Model\Condition\Sql\Builder;
3030
use Magento\Store\Model\Store;
3131
use Magento\Store\Model\StoreManagerInterface;
32-
3332
use Magento\Widget\Helper\Conditions;
3433
use PHPUnit\Framework\MockObject\MockObject;
3534
use PHPUnit\Framework\TestCase;
@@ -137,7 +136,7 @@ protected function setUp(): void
137136
'conditionsHelper' => $this->widgetConditionsHelper,
138137
'storeManager' => $this->storeManager,
139138
'design' => $this->design,
140-
'json' => $this->serializer
139+
'json' => $this->serializer,
141140
]
142141
);
143142
$this->request = $arguments['context']->getRequest();

0 commit comments

Comments
 (0)