From 40e40d5b9c05c054f5995eddff5e656a6441a0ba Mon Sep 17 00:00:00 2001
From: Travis Carden <TravisCarden@236758.no-reply.drupal.org>
Date: Fri, 8 Jul 2011 13:12:40 -0500
Subject: [PATCH] Issue #1168366: Fixed grid values not displaying in emails.

---
 components/grid.inc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/components/grid.inc b/components/grid.inc
index c8255c9..425a425 100644
--- a/components/grid.inc
+++ b/components/grid.inc
@@ -276,7 +276,7 @@ function theme_webform_display_grid($element) {
   else {
     $items = array();
     foreach (element_children($element) as $key) {
-      $items[] = ' - ' . $element[$key]['#title'] . ': ' . (isset($element['#options'][$element[$key]['#value']]) ? $element['#options'][$element[$key]['#value']] : '');
+      $items[] = ' - ' . $element[$key]['#title'] . ': ' . (isset($element['#grid_options'][$element[$key]['#value']]) ? $element['#grid_options'][$element[$key]['#value']] : '');
     }
     $output = implode("\n", $items);
   }
-- 
1.7.4.1

