From 43a9724d02dd847bf22c2af6e64ac3a2b2e6426a Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 9 May 2013 23:08:11 -0500 Subject: [PATCH] Fix textarea name setting. Closes #1161. --- FormBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FormBuilder.php b/FormBuilder.php index c310090..2792817 100644 --- a/FormBuilder.php +++ b/FormBuilder.php @@ -305,7 +305,7 @@ class FormBuilder { */ public function textarea($name, $value = null, $options = array()) { - $options['name'] = $name; + if ( ! isset($options['name'])) $options['name'] = $name; // Next we will look for the rows and cols attributes, as each of these are put // on the textarea element definition. If they are not present, we will just