Commit f27edcc2 by Dmitry Chernikov

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

parent 886def85
......@@ -255,9 +255,7 @@ class Menu extends Widget
if (!isset($item['label'])) {
$item['label'] = '';
}
if ($this->encodeLabels) {
$items[$i]['label'] = Html::encode($item['label']);
}
$items[$i]['label'] = $this->encodeLabels ? Html::encode($item['label']) : $item['label'];
$hasActiveChild = false;
if (isset($item['items'])) {
$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