From 00f8efb32b3e01d39eac88b2a08f1250602dec0e Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 27 Mar 2013 10:11:19 -0500 Subject: [PATCH] Don't override names if they have been explicitly set. --- FormBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FormBuilder.php b/FormBuilder.php index 0d60238..7fba4fc 100644 --- a/FormBuilder.php +++ b/FormBuilder.php @@ -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