Skip to content
This repository has been archived by the owner on Jul 10, 2020. It is now read-only.

Commit

Permalink
Merge pull request #155 from nathansbraten/master
Browse files Browse the repository at this point in the history
Fixes usage of label option on button elements.
  • Loading branch information
neilime committed Aug 17, 2015
2 parents 234cede + a33441c commit 6e9ea42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TwbBundle/Form/View/Helper/TwbBundleFormButton.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ public function render(ElementInterface $oElement, $sButtonContent = null)
* Define button content
*/
if (null === $sButtonContent) {
$sButtonContent = $oElement->getValue();
$sButtonContent = $oElement->getLabel();

if (!$sButtonContent) {
$sButtonContent = $oElement->getLabel();
$sButtonContent = $oElement->getValue();
}

if (null === $sButtonContent && !$aIconOptions) {
Expand Down

0 comments on commit 6e9ea42

Please sign in to comment.