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
|
# 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 @@
|
||||||
* 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 @@ public static function label($name, $value, $attributes = array())
|
||||||
*/
|
*/
|
||||||
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;
|
||||||
|
|
Loading…
Reference in New Issue