Skip to content

Commit d72edc8

Browse files
committed
merged branch bschussek/button-fix (PR #7800)
This PR was merged into the master branch. Discussion ---------- [Form] Fixed missing label in button | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Commits ------- 6671b32 [Form] Fixed missing label in button
2 parents ce60d5f + 3686268 commit d72edc8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
<?php if (!$label) { $label = $view['form']->humanize($name); } ?>
2-
<button type="<?php echo isset($type) ? $view->escape($type) : 'button' ?>" <?php echo $view['form']->block($form, 'button_attributes') ?>>
3-
<?php $view->escape($view['translator']->trans($label, array(), $translation_domain)) ?>
4-
</button>
2+
<button type="<?php echo isset($type) ? $view->escape($type) : 'button' ?>" <?php echo $view['form']->block($form, 'button_attributes') ?>><?php echo $view->escape($view['translator']->trans($label, array(), $translation_domain)) ?></button>

0 commit comments

Comments
 (0)