Commit ab1ab8c1 authored by yched's avatar yched

#435520 by yched, sun: Fix text fields rendered as 'n/a' in some cases

parent b159408f
......@@ -10,6 +10,7 @@ CCK 6.x-2.x
- #894880 by yched: fix notices in check_plain() when rendering empty 'plain text' values
- #728472 by Darren Oh: Ensure the module's preprocess functions run first
- #932680 by Dave Reid: Token integration : allow using of Token API's new $options param
- #435520 by yched, sun: Fix text fields rendered as 'n/a' in some cases
CCK 6.x-2.8
===========
......
......@@ -167,8 +167,7 @@ function text_field($op, &$node, $field, &$items, $teaser, $page) {
case 'sanitize':
foreach ($items as $delta => $item) {
if (!empty($field['text_processing'])) {
$check = is_null($node) || (isset($node->build_mode) && $node->build_mode == NODE_BUILD_PREVIEW);
$text = isset($item['value']) ? check_markup($item['value'], $item['format'], $check) : '';
$text = isset($item['value']) ? check_markup($item['value'], $item['format'], FALSE) : '';
}
else {
$text = isset($item['value']) ? check_plain($item['value']) : '';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment