mirror of
https://github.com/laravel/laravel.git
synced 2025-02-20 11:53:14 +08:00
fixed bug in form class that prevented name attribute from being set properly on input elements.
This commit is contained in:
parent
fdc1c34676
commit
174d50c044
@ -1,5 +1,13 @@
|
||||
# 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
|
||||
|
||||
- Fixed bug that prevented view composers from being called for module named views.
|
||||
|
@ -3,7 +3,7 @@
|
||||
* Laravel - A clean and classy framework for PHP web development.
|
||||
*
|
||||
* @package Laravel
|
||||
* @version 1.5.7
|
||||
* @version 1.5.8
|
||||
* @author Taylor Otwell
|
||||
* @link http://laravel.com
|
||||
*/
|
||||
|
@ -143,6 +143,8 @@ class Form {
|
||||
*/
|
||||
public static function input($type, $name, $value = null, $attributes = array())
|
||||
{
|
||||
$name = (isset($attributes['name'])) ? $attributes['name'] : $name;
|
||||
|
||||
$id = static::id($name, $attributes);
|
||||
|
||||
return '<input'.HTML::attributes(array_merge($attributes, compact('type', 'name', 'value', 'id'))).'>'.PHP_EOL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user