I got some issue in the search result page.

The "snippet" content is hidden or lost, I figure out the problem in my case was a "if" that call to new function for theme the snippet content.

In apachesolr_search.module @see apachesolr_search_process_response()

I comment this lines

      if ($bundle) {
         $hook .= '__' . $bundle;
      }

to

      /*
      if ($bundle) {
         $hook .= '__' . $bundle;
      }
      */

And then my snippet appear. What I'm missing with this "$bundle" function that won't work right in my site?, or maybe that case needed to be fixed in Drupal 6.

CommentFileSizeAuthor
#6 1670834-6.patch1.42 KBnick_vh
#5 1670834-5.patch560 byteskillua99
#3 1670834-3.patch681 byteskillua99

Comments

pwolanin’s picture

Category: support » bug

I think this may be a different in the D7 vs. D6 theme layer handling of theme hook names.

killua99’s picture

Status: Active » Needs work

Ok them it's a bug I'm gonna work on it.

killua99’s picture

Status: Needs work » Needs review
StatusFileSize
new681 bytes

A small "solution" can be with moving some lines of code to keep the $hook clean. I test it in my site and work.

nick_vh’s picture

Status: Needs review » Needs work

that is not a very clean solution is it ;-)

killua99’s picture

StatusFileSize
new560 bytes

Another solution could be removing all those lines that do nothing in D6.

ps: I'm not change the status cause maybe need work xD.

nick_vh’s picture

Title: Weird function on weird search result. » Bundle specific overrides do not work as expected in drupal 6
Status: Needs work » Needs review
StatusFileSize
new1.42 KB

this should fix it + removed two dsm's

killua99’s picture

Status: Needs review » Reviewed & tested by the community

This patch is really good [#1670834-6: Bundle specific overrides do not work as expected in drupal 6 better than my lazy solution :D. Now I now you can pass an array in theme()

nick_vh’s picture

Status: Reviewed & tested by the community » Closed (fixed)

committed, thanks for reporting!