Don't override names if they have been explicitly set.

This commit is contained in:
Taylor Otwell committed 2013-03-27 10:11:19 -05:00
1 parent 8104c77512
commit 00f8efb32b
1 file changed
+1 -1
+1 -1
View File
@@ -189,7 +189,7 @@ class FormBuilder {
*/
public function input($type, $name, $value = null, $options = array())
{
$options['name'] = $name;
if ( ! isset($options['name'])) $options['name'] = $name;
// We will get the appropriate value for the given field. We will look for the
// value in the session for the value in the old input data then we'll look