Browse Source

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

Taylor Otwell 12 years ago
parent
commit
174d50c044
3 changed files with 11 additions and 1 deletions
  1. 8 0
      changelog.md
  2. 1 1
      public/index.php
  3. 2 0
      system/form.php

+ 8 - 0
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.

+ 1 - 1
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
  */

+ 2 - 0
system/form.php

@@ -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;