Skip to content

Commit

Permalink
Fix incorrect rendering of radio element
Browse files Browse the repository at this point in the history
Remove excess % symbol after element render.
  • Loading branch information
Андрей Чешуин authored and Андрей Чешуин committed Apr 5, 2019
1 parent e5a5d0e commit 60857f4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/TwbsHelper/Form/View/Helper/FormRadio.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function render(ElementInterface $oElement)
$this->setSeparator('');
$oElement->setLabelAttributes(['class' => $buttonClass]);

return sprintf('<div class="btn-group" data-toggle="buttons">%s</div>', parent::render($oElement)). "%s";
return sprintf('<div class="btn-group" data-toggle="buttons">%s</div>', parent::render($oElement));
}

return sprintf(static::$checkboxFormat, parent::render($oElement));
Expand Down Expand Up @@ -182,7 +182,6 @@ protected function renderOptions(MultiCheckbox $oElement, array $aOptions, array
}

$sMarkup .= ($sMarkup ? $this->getSeparator() : '') . $sOptionMarkup;
$sMarkup .= ($iCount == $iNumberOfOptions) ? "%s" : "";
}

return $sMarkup;
Expand Down

0 comments on commit 60857f4

Please sign in to comment.