From 81f32c1a8944c8319cd4a2251a958975ef3323ed Mon Sep 17 00:00:00 2001 From: Eric Bollens Date: Tue, 28 Jan 2014 11:48:55 -0800 Subject: [PATCH] Add FormBuilder support for option-specified name on select --- FormBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FormBuilder.php b/FormBuilder.php index 2b5bb63..d3bfb91 100755 --- a/FormBuilder.php +++ b/FormBuilder.php @@ -410,7 +410,7 @@ class FormBuilder { $options['id'] = $this->getIdAttribute($name, $options); - $options['name'] = $name; + if ( ! isset($options['name'])) $options['name'] = $name; // We will simply loop through the options and build an HTML value for each of // them until we have an array of HTML declarations. Then we will join them