Skip to content

Commit 73134a2

Browse files
committed
Revert "bug #18275 [Form] Fix BC break introduced in #14403 (HeahDude)"
This reverts commit 56fa7989a846a108179345fcfc4258c884db2289, reversing changes made to dcc3fce855754c95b1679e76714de577c3d792ab.
1 parent a3ebefd commit 73134a2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Resources/views/Form/widget_attributes.html.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
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 ?>
1+
id="<?php echo $view->escape($id) ?>" name="<?php echo $view->escape($full_name) ?>"<?php if ($disabled): ?> disabled="disabled"<?php endif ?>
32
<?php if ($required): ?> required="required"<?php endif ?>
43
<?php foreach ($attr as $k => $v): ?>
5-
<?php if ('readonly' === $k) { continue; } ?>
64
<?php if (in_array($k, array('placeholder', 'title'), true)): ?>
75
<?php printf(' %s="%s"', $view->escape($k), $view->escape(false !== $translation_domain ? $view['translator']->trans($v, array(), $translation_domain) : $v)) ?>
86
<?php elseif ($v === true): ?>

0 commit comments

Comments
 (0)