Commit f27edcc2 by Dmitry Chernikov

Fix Menu bug when using `template` with `encodeLabel` => false

parent 886def85
...@@ -255,9 +255,7 @@ class Menu extends Widget ...@@ -255,9 +255,7 @@ class Menu extends Widget
if (!isset($item['label'])) { if (!isset($item['label'])) {
$item['label'] = ''; $item['label'] = '';
} }
if ($this->encodeLabels) { $items[$i]['label'] = $this->encodeLabels ? Html::encode($item['label']) : $item['label'];
$items[$i]['label'] = Html::encode($item['label']);
}
$hasActiveChild = false; $hasActiveChild = false;
if (isset($item['items'])) { if (isset($item['items'])) {
$items[$i]['items'] = $this->normalizeItems($item['items'], $hasActiveChild); $items[$i]['items'] = $this->normalizeItems($item['items'], $hasActiveChild);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment