This is a general problem that search-result.tpl.php talks of different keys that exist by default in $info_split & $info, and some default/'always existing' keys seem to be missing.

This seems to heavily relate to http://drupal.org/node/253725#comment-2638154, except not just for comment information.

$info_split['type'] doesn't exist for example, but it can be fetched via:

$result['node']->type

Not sure if this is a documentation lapse or a bug introduced in Drupal 7.

Comments

Tom-E’s picture

Assigned: Unassigned » Tom-E
Status: Needs work » Closed (duplicate)

I've traced it down to the commit #.

Marking as duplicate of http://drupal.org/node/1078174 and potentially reopening there to address this issue.

enochRoot’s picture

well, thanks a lot for mentioning this. now it's 2012 and drupal 7.15, but the doc-text in search-result.tpl.php is still the same.

markabur’s picture

Status: Closed (duplicate) » Active

This issue should not be marked as a duplicate of itself...

Version: 7.0 » 7.x-dev

Core issues are now filed against the dev versions where changes will be made. Document the specific release you are using in your issue comment. More information about choosing a version.

Status: Active » Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.