Closed (fixed)
Project:
Book Review
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 May 2005 at 20:09 UTC
Updated:
29 Jun 2006 at 15:16 UTC
The teaser of the book review is not properly filtered, that is, line breaks are not converted to br tags and so on. The main review field is formatted properly.
Comments
Comment #1
CrowChick commentedI am having a similar problem and no luck fixing it.
Comment #2
CrowChick commentedI figured out a patch that fixes this. Replace the following:
function bookreview_validate(&$node) {
if (variable_get('teaser_length', 600)) {
if ($node->synopsis) {
$node->teaser = node_teaser($node->synopsis);
}
else {
$node->teaser = node_teaser($node->review);
}
}
else {
// teasers are disabled, display whole book review
$node->teaser = $node->body;
}
with:
function bookreview_validate(&$node) {
if (variable_get('teaser_length', 600)) {
if ($node->synopsis) {
$node->teaser = check_output(node_teaser($node->synopsis), $node->format);
}
else {
$node->teaser = check_output(node_teaser($node->review), $node->format);
}
}
else {
// teasers are disabled, display whole book review
$node->teaser = check_output(node_teaser($node->synopsis), $node->format);
}
Comment #3
jeremy commentedApplied to 4.7 release.
Comment #4
(not verified) commented