Skip to content

Commit 6f3bba3

Browse files
author
Oleksandr Gorkun
committed
MAGETWO-88656: [Backport for 2.1.x] Sales Rule Widget Label
1 parent 7acadb5 commit 6f3bba3

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function prepareElementHtml(\Magento\Framework\Data\Form\Element\Abstract
8787
if ($element->getValue()) {
8888
$rule = $this->ruleFactory->create()->load((int)$element->getValue());
8989
if ($rule->getId()) {
90-
$chooser->setLabel($rule->getName());
90+
$chooser->setLabel($this->escapeHtml($rule->getName()));
9191
}
9292
}
9393

0 commit comments

Comments
 (0)