Some sites don't use titles for their comments. And without a title, there's no link in the results.

Comments

robertdouglass’s picture

Status: Active » Fixed

Rearranged it just a bit:

-    $document->title = apachesolr_clean_text($comment->subject);
+    $title = empty($comment->subject) ? $comment->title : $node->subject;
+    $document->title = apachesolr_clean_text($title);

Committed to 6.2. Thanks!

kcoop’s picture

StatusFileSize
new1.85 KB

You undoubtedly meant this:

$title = empty($comment->subject) ? $comment->subject : $node->title;
kcoop’s picture

StatusFileSize
new1.85 KB

Er... rather, this. :-)

$title = empty($comment->subject) ? $node->title : $comment->subject;
kcoop’s picture

StatusFileSize
new1.05 KB

Doh! It's just not my night. There was some cruft in that patch. Still learning this cvs thing...

dakku’s picture

Status: Fixed » Reviewed & tested by the community

Hi,
The patch by kcoop seems to fix the issue, nice typo Rob.. lol
Can this patch be committed please?

robertdouglass’s picture

Status: Reviewed & tested by the community » Fixed

o mai gawd... did I really do that?

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.