Skip to content

Commit 844fcee

Browse files
committed
fix high deps tests
1 parent bdcf98c commit 844fcee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Resources/views/Form/widget_attributes.html.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
id="<?php echo $view->escape($id) ?>" name="<?php echo $view->escape($full_name) ?>" <?php if ($read_only && !isset($attr['readonly'])): ?>readonly="readonly" <?php endif ?>
1+
id="<?php echo $view->escape($id) ?>" name="<?php echo $view->escape($full_name) ?>" <?php if ($read_only): ?>readonly="readonly" <?php endif ?>
22
<?php if ($disabled): ?>disabled="disabled" <?php endif ?>
33
<?php if ($required): ?>required="required" <?php endif ?>
44
<?php foreach ($attr as $k => $v): ?>
5+
<?php if ('readonly' === $k && $read_only): continue; endif ?>
56
<?php if (in_array($k, array('placeholder', 'title'), true)): ?>
67
<?php printf('%s="%s" ', $view->escape($k), $view->escape($view['translator']->trans($v, array(), $translation_domain))) ?>
78
<?php elseif ($v === true): ?>

0 commit comments

Comments
 (0)