From bb49992a5310407130e45a04c70db60f8e7bcbfb Mon Sep 17 00:00:00 2001
From: Dan Chadwick <dan899@gmail.com>
Date: Wed, 10 Sep 2014 17:03:34 -0400
Subject: [PATCH] Issue #2336445 by DanChadwick: Fixed Adding custom Wrapper
 CSS classes removes the "form-item" class.

---
 webform.module |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/webform.module b/webform.module
index a4a4ae4..b98cdb9 100644
--- a/webform.module
+++ b/webform.module
@@ -3474,7 +3474,7 @@ function template_preprocess_webform_element(&$variables) {
   if (isset($element['#title_display']) && strcmp($element['#title_display'], 'inline') === 0) {
     $wrapper_classes[] = 'webform-container-inline';
   }
-  $element['#wrapper_attributes']['class'] += $wrapper_classes;
+  $element['#wrapper_attributes']['class'] = array_merge($element['#wrapper_attributes']['class'], $wrapper_classes);
 
   // If #title_display is none, set it to invisible instead - none only used if
   // we have no title at all to use.
-- 
1.7.8.msysgit.0

