Closed (fixed)
Project:
Content Construction Kit (CCK)
Version:
6.x-1.x-dev
Component:
content.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Mar 2006 at 22:09 UTC
Updated:
18 Apr 2006 at 00:15 UTC
Looking at content_view():
function content_view(&$node, $teaser = FALSE, $page = FALSE) {
$node->body = implode(_content_field_invoke('view', $node, $teaser, $page));
$node->teaser = implode(_content_field_invoke('view', $node, $teaser, $page));
$node->readmore = ($node->body != $node->teaser);
}
Shouldn't that be:
function content_view(&$node, $teaser = FALSE, $page = FALSE) {
$node->body = implode(_content_field_invoke('view', $node, FALSE, $page));
$node->teaser = implode(_content_field_invoke('view', $node, TRUE, $page));
$node->readmore = ($node->body != $node->teaser);
}
Comments
Comment #1
jonbob commentedTeaser handling has to be revamped in general, but this patch is more correct than the current behavior. Applied.
Comment #2
(not verified) commented