Skip to content

Commit ca90a61

Browse files
committed
[Form] Fix BC break introduced in #14403
1 parent 759d977 commit ca90a61

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Resources/views/Form/widget_attributes.html.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
id="<?php echo $view->escape($id) ?>" name="<?php echo $view->escape($full_name) ?>"<?php if ($disabled): ?> disabled="disabled"<?php endif ?>
1+
id="<?php echo $view->escape($id) ?>" name="<?php echo $view->escape($full_name) ?>"<?php if ($read_only): ?> readonly="readonly"<?php endif ?>
2+
<?php if ($disabled): ?> disabled="disabled"<?php endif ?>
23
<?php if ($required): ?> required="required"<?php endif ?>
34
<?php foreach ($attr as $k => $v): ?>
5+
<?php if ('readonly' === $k) { continue; } ?>
46
<?php if (in_array($k, array('placeholder', 'title'), true)): ?>
57
<?php printf(' %s="%s"', $view->escape($k), $view->escape(false !== $translation_domain ? $view['translator']->trans($v, array(), $translation_domain) : $v)) ?>
68
<?php elseif ($v === true): ?>

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"symfony/dom-crawler": "~2.0,>=2.0.5|~3.0.0",
4444
"symfony/polyfill-intl-icu": "~1.0",
4545
"symfony/security": "~2.6|~3.0.0",
46-
"symfony/form": "~2.8",
46+
"symfony/form": "^2.8.4",
4747
"symfony/expression-language": "~2.6|~3.0.0",
4848
"symfony/process": "~2.0,>=2.0.5|~3.0.0",
4949
"symfony/validator": "~2.5|~3.0.0",

0 commit comments

Comments
 (0)