From 6e7869e58419d9848abc271b214d116be0446b7e Mon Sep 17 00:00:00 2001 From: Richard BAYET Date: Fri, 1 Mar 2019 15:45:20 +0100 Subject: [PATCH] Fixes #1310 Rules admin block w/o useless escapeJS --- .../Block/Adminhtml/Optimizer/RuleCondition.php | 2 +- .../Block/Adminhtml/Catalog/Category/VirtualRule.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/module-elasticsuite-catalog-optimizer/Block/Adminhtml/Optimizer/RuleCondition.php b/src/module-elasticsuite-catalog-optimizer/Block/Adminhtml/Optimizer/RuleCondition.php index 47bb5aef2..f70a2a106 100644 --- a/src/module-elasticsuite-catalog-optimizer/Block/Adminhtml/Optimizer/RuleCondition.php +++ b/src/module-elasticsuite-catalog-optimizer/Block/Adminhtml/Optimizer/RuleCondition.php @@ -72,7 +72,7 @@ public function __construct( */ protected function _toHtml() { - return $this->escapeJsQuote($this->getForm()->toHtml()); + return $this->getForm()->toHtml(); } /** diff --git a/src/module-elasticsuite-virtual-category/Block/Adminhtml/Catalog/Category/VirtualRule.php b/src/module-elasticsuite-virtual-category/Block/Adminhtml/Catalog/Category/VirtualRule.php index 0960c6062..26896d430 100644 --- a/src/module-elasticsuite-virtual-category/Block/Adminhtml/Catalog/Category/VirtualRule.php +++ b/src/module-elasticsuite-virtual-category/Block/Adminhtml/Catalog/Category/VirtualRule.php @@ -59,7 +59,7 @@ public function __construct( */ protected function _toHtml() { - return $this->escapeJsQuote($this->getForm()->toHtml()); + return $this->getForm()->toHtml(); } /**