We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 62b0f0d + 1e37280 commit a30f2aeCopy full SHA for a30f2ae
app/code/Magento/SalesRule/Block/Adminhtml/Promo/Widget/Chooser.php
@@ -3,8 +3,12 @@
3
* Copyright © Magento, Inc. All rights reserved.
4
* See COPYING.txt for license details.
5
*/
6
+
7
namespace Magento\SalesRule\Block\Adminhtml\Promo\Widget;
8
9
+/**
10
+ * Widget that allows to select a sales rule.
11
+ */
12
class Chooser extends \Magento\Backend\Block\Widget\Grid\Extended
13
{
14
/**
@@ -87,7 +91,7 @@ public function prepareElementHtml(\Magento\Framework\Data\Form\Element\Abstract
87
91
if ($element->getValue()) {
88
92
$rule = $this->ruleFactory->create()->load((int)$element->getValue());
89
93
if ($rule->getId()) {
90
- $chooser->setLabel($rule->getName());
94
+ $chooser->setLabel($this->escapeHtml($rule->getName()));
95
}
96
97
0 commit comments