diff --git a/changelog.md b/changelog.md index 496ee9c1..66580658 100644 --- a/changelog.md +++ b/changelog.md @@ -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. diff --git a/public/index.php b/public/index.php index 388a3fae..933ba787 100644 --- a/public/index.php +++ b/public/index.php @@ -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 */ diff --git a/system/form.php b/system/form.php index b1f6bd61..e4c3f0e8 100644 --- a/system/form.php +++ b/system/form.php @@ -143,6 +143,8 @@ public static function label($name, $value, $attributes = array()) */ public static function input($type, $name, $value = null, $attributes = array()) { + $name = (isset($attributes['name'])) ? $attributes['name'] : $name; + $id = static::id($name, $attributes); return ''.PHP_EOL;