Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed rendering of FileType (value is not a valid attribute for input…
…[type=file])
- Loading branch information
Showing
3 changed files
with
2 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/field_widget.html.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<input | ||
type="<?php echo isset($type) ? $view->escape($type) : "text" ?>" | ||
value="<?php echo $view->escape($value) ?>" | ||
<?php if (!empty($value)): ?>value="<?php echo $view->escape($value) ?>"<?php endif ?> | ||
<?php echo $view['form']->renderBlock('attributes') ?> | ||
/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters