Skip to content

Commit

Permalink
Fix bug that caused the name of a widget not being used as placeholde…
Browse files Browse the repository at this point in the history
…r in inline-style forms

Fixes #350 (thanks to GdotBdot for reporting this)
  • Loading branch information
Florian Eckerstorfer committed Jan 22, 2015
1 parent feb69b4 commit c2ff7ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Resources/views/Form/bootstrap.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

{% set type = type|default('text') %}

{% if style == 'inline' and (attr.placeholder is not defined or attr.placeholder is empty) and label != false %}
{% if style == 'inline' and (attr.placeholder is not defined or attr.placeholder is empty) and label is not sameas(false) %}
{% if label is empty %}
{% set attr = attr|merge({ 'placeholder': name|humanize }) %}
{% else %}
Expand Down

0 comments on commit c2ff7ee

Please sign in to comment.