Skip to content

Commit

Permalink
Merge pull request #17 from syberon/fix-render-of-radio
Browse files Browse the repository at this point in the history
Fix incorrect rendering of radio element
  • Loading branch information
neilime authored Apr 6, 2019
2 parents e5a5d0e + 60857f4 commit d81786b
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 d81786b

Please sign in to comment.