Skip to content

Commit a5781a3

Browse files
committed
Merge branch 'fix/33081-currency-sign-missing-on-advanced-seach-result' of github.com:karyna-tsymbal-atwix/magento2 into 2.4-develop-prs
2 parents cb49b21 + 2804b4c commit a5781a3

File tree

1 file changed

+6
-0
lines changed
  • app/code/Magento/CatalogSearch/view/frontend/templates/advanced

1 file changed

+6
-0
lines changed

app/code/Magento/CatalogSearch/view/frontend/templates/advanced/form.phtml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
use Magento\Framework\Escaper;
8+
79
/**
810
* Catalog advanced search form
911
*
1012
* @var $block \Magento\CatalogSearch\Block\Advanced\Form
1113
* @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer
14+
* @var Escaper $escaper
1215
*/
1316
?>
1417

@@ -91,6 +94,9 @@ $catalogSearchHelper = $block->getData('catalogSearchHelper'); ?>
9194
for="<?= $block->escapeHtmlAttr($_code) ?>_to">
9295
<?= $block->escapeHtml($block->getCurrency($_attribute)) ?>
9396
</label>
97+
<input type="hidden"
98+
name="<?= $escaper->escapeHtmlAttr($_code)?>[currency]"
99+
value="<?= $escaper->escapeHtml($block->getCurrency($_attribute)) ?>">
94100
</div>
95101
</div>
96102
</div>

0 commit comments

Comments
 (0)