File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed
app/code/Magento/CatalogWidget Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 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
77namespace 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}
Original file line number Diff line number Diff line change 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 */
66declare (strict_types=1 );
77
2929use Magento \Rule \Model \Condition \Sql \Builder ;
3030use Magento \Store \Model \Store ;
3131use Magento \Store \Model \StoreManagerInterface ;
32-
3332use Magento \Widget \Helper \Conditions ;
3433use PHPUnit \Framework \MockObject \MockObject ;
3534use 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 ();
You can’t perform that action at this time.
0 commit comments