From f78356a457b0c8e6ef0b1ecbfbafa366195672b0 Mon Sep 17 00:00:00 2001 From: ADmad Date: Fri, 1 Sep 2017 17:50:12 +0530 Subject: [PATCH] Fix span tag generation. If you pass `null` as second param to HtmlHelper::tag() it will generate only opening tag. --- src/Template/Element/action-groups.ctp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Template/Element/action-groups.ctp b/src/Template/Element/action-groups.ctp index 19bebb68..f4142087 100644 --- a/src/Template/Element/action-groups.ctp +++ b/src/Template/Element/action-groups.ctp @@ -17,10 +17,10 @@ foreach ($groups as $key => $group) { $group) : ?>
Html->link( - sprintf("%s %s", $key, $this->Html->tag('span', null, ['class' => 'caret'])), + sprintf("%s %s", $key, $this->Html->tag('span', '', ['class' => 'caret'])), '#', - ['class' => 'btn btn-default dropdown-toggle', 'escape' => false, 'data-toggle' => 'dropdown', 'aria-haspopup' => true, 'aria-expanded' => false]); - ?> + ['class' => 'btn btn-default dropdown-toggle', 'escape' => false, 'data-toggle' => 'dropdown', 'aria-haspopup' => true, 'aria-expanded' => false] + ) ?>