소스 검색

[FrameworkBundle] Fixed maxlength attribute in TextField in PHP templates

Bernhard Schussek 14 년 전
부모
커밋
17acdd971c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/text_field.php

+ 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) ?>
 />