The $field which gets passed to the theme function is not always an array... The Author Facet block passed just the uid over. Assuming it is an array causes the wrong digit to be pulled out.
The fix? In theme_apachesolr_breadcrumb_uid
Change:
$uid = $field['#value'];
to
$uid = is_array($field) ? $field['#value'] : $field;
Without this, the Author Facet block reports the wrong username.
The function appears the same in DRUPAL-6--2 as well... although i haven't tested if the bug is present in that branch yet.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | apachesolr-656044-D5.patch | 716 bytes | claudiu.cristea |
Comments
Comment #1
robertdouglass commentedSince we're not observing any problems with this in the higher branches I suggest fixing it as needed in this branch only.
Comment #2
claudiu.cristeaI confirm the bug. Here's the patch.
Comment #3
claudiu.cristeaCommitted to DRUPAL-5--2 in #318534.
This is affecting also 6.x-1.x-dev. Porting needed.
Comment #4
pwolanin commentedThis patch cannot be right for 6.x-1.x: are you sure you are pulling the code into 5.x?
Comment #5
claudiu.cristeaAt some point I've backported some patch from 6.x-2.x-dev that changed the way arguments are passed to the theme function. I don't recall why I did this but I use the 6.2 way: $field instead of $uid.
Comment #6
pwolanin commentedhave we verified this is a bug in 6.x-1.x at all? I think this is fixed in all relevant branches.