Przeglądaj źródła

[FrameworkBundle] Fixed maxlength attribute in TextField in PHP templates

Bernhard Schussek 14 lat temu
rodzic
commit
17acdd971c

+ 1 - 1
src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/text_field.php

@@ -3,6 +3,6 @@
     name="<?php echo $field->getName() ?>"
     value="<?php echo $field->getDisplayedData() ?>"
     <?php if ($field->isDisabled()): ?>disabled="disabled"<?php endif ?>
-    <?php // FIXME if (!isset($attr['maxlength']) && $field->getMaxLength() > 0) $attr['maxlength'] = $field->getMaxLength() ?>
+    <?php if (!isset($attr['maxlength']) && $field->getMaxLength() > 0) $attr['maxlength'] = $field->getMaxLength() ?>
     <?php echo $view['form']->attributes($attr) ?>
 />