Skip to content

Commit a30f2ae

Browse files
Merge MAGETWO-88654 into 2.3-bugfixes-031018
2 parents 62b0f0d + 1e37280 commit a30f2ae

File tree

1 file changed

+5
-1
lines changed
  • app/code/Magento/SalesRule/Block/Adminhtml/Promo/Widget

1 file changed

+5
-1
lines changed

app/code/Magento/SalesRule/Block/Adminhtml/Promo/Widget/Chooser.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
67
namespace Magento\SalesRule\Block\Adminhtml\Promo\Widget;
78

9+
/**
10+
* Widget that allows to select a sales rule.
11+
*/
812
class Chooser extends \Magento\Backend\Block\Widget\Grid\Extended
913
{
1014
/**
@@ -87,7 +91,7 @@ public function prepareElementHtml(\Magento\Framework\Data\Form\Element\Abstract
8791
if ($element->getValue()) {
8892
$rule = $this->ruleFactory->create()->load((int)$element->getValue());
8993
if ($rule->getId()) {
90-
$chooser->setLabel($rule->getName());
94+
$chooser->setLabel($this->escapeHtml($rule->getName()));
9195
}
9296
}
9397

0 commit comments

Comments
 (0)