Commit 174d50c0 authored by Taylor Otwell's avatar Taylor Otwell

fixed bug in form class that prevented name attribute from being set properly on input elements.

parent fdc1c346
# Laravel Change Log # Laravel Change Log
## Version 1.5.8
- Fixed bug in form class that prevent name attributes from being set properly.
### Upgrading from 1.5.7
- Replace **system** directory.
## Version 1.5.7 ## Version 1.5.7
- Fixed bug that prevented view composers from being called for module named views. - Fixed bug that prevented view composers from being called for module named views.
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* Laravel - A clean and classy framework for PHP web development. * Laravel - A clean and classy framework for PHP web development.
* *
* @package Laravel * @package Laravel
* @version 1.5.7 * @version 1.5.8
* @author Taylor Otwell * @author Taylor Otwell
* @link http://laravel.com * @link http://laravel.com
*/ */
......
...@@ -143,6 +143,8 @@ class Form { ...@@ -143,6 +143,8 @@ class Form {
*/ */
public static function input($type, $name, $value = null, $attributes = array()) public static function input($type, $name, $value = null, $attributes = array())
{ {
$name = (isset($attributes['name'])) ? $attributes['name'] : $name;
$id = static::id($name, $attributes); $id = static::id($name, $attributes);
return '<input'.HTML::attributes(array_merge($attributes, compact('type', 'name', 'value', 'id'))).'>'.PHP_EOL; return '<input'.HTML::attributes(array_merge($attributes, compact('type', 'name', 'value', 'id'))).'>'.PHP_EOL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment