# HG changeset patch # User Franck Deroche # Date 1261389541 0 # Node ID 97a888cb817c666dadbf13ad5a5befd5fc0657d0 # Parent 75106ee96c1e29b3a34590262c2ca1c04f147e67 Fields: "Short content" contents was missing after a preview. diff -r 75106ee96c1e -r 97a888cb817c mee.module --- a/mee.module Wed Nov 25 15:51:40 2009 +0000 +++ b/mee.module Mon Dec 21 09:59:01 2009 +0000 @@ -540,12 +540,13 @@ '#type' => 'value', '#value' => implode('][', array_merge($element['#parents'], array($field_key))), ); + $short = $element['#value']['short'] ? $element['#value']['short'] : $element['#value']['mee']['short']; $element['mee']['short'] = array( '#type' => 'textarea', '#title' => t('Short content'), '#rows' => 5, '#weight' => -100, - '#default_value' => $element['#value']['short'] + '#default_value' => $short );