From 0250d36193957ee1a9f7606f05dec74cee4cd3a4 Mon Sep 17 00:00:00 2001
From: Claudiu Cristea <clau.cristea@gmail.com>
Date: Fri, 15 Jul 2011 16:00:55 +0300
Subject: [PATCH] Fix http://drupal.org/node/1219860.

---
 sites/all/modules/title/title.core.inc |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/sites/all/modules/title/title.core.inc b/sites/all/modules/title/title.core.inc
index 016d5e1..cd0d86b 100644
--- a/sites/all/modules/title/title.core.inc
+++ b/sites/all/modules/title/title.core.inc
@@ -95,8 +95,10 @@ function title_entity_info() {
  */
 function title_field_term_description_submit(&$values, $legacy_field, $info, $langcode) {
   $values['description'] = array();
-  foreach (array('value', 'format') as $key) {
-    $values['description'][$key] = $values[$info['field']['field_name']][$langcode][0][$key];
+  foreach ($values[$info['field']['field_name']][$langcode][0] as $key => $value) {
+    if (in_array($key, array('value', 'format'))) {
+      $values['description'][$key] = $value;
+    }
   }
 }
 
-- 
1.7.4.1

