Closed (fixed)
Project:
Taxonomy Image
Version:
6.x-1.x-dev
Component:
Contrib Node Display
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Oct 2008 at 01:02 UTC
Updated:
9 Nov 2008 at 18:32 UTC
This looks like a minor oversight.
You wouldn't have noticed it when using your own theme functions, but the link back from nodes with embedded images was not correctly finding the term/n page.
Changed from the unavailable $tid to $term->tid
diff -u -p -r1.1.4.5 taxonomy_image_node_display.module
--- taxonomy_image/contributed/taxonomy_image_node_display/taxonomy_image_node_display.module 1 Oct 2008 20:17:10 -0000 1.1.4.5
+++ taxonomy_image/contributed/taxonomy_image_node_display/taxonomy_image_node_display.module 19 Oct 2008 00:55:41 -0000
@@ -53,7 +53,7 @@ function taxonomy_image_node_display_the
* Theming function to allow overrides at theme level
*/
function theme_taxonomy_image_display($image, $term) {
- return l($image, 'taxonomy/term/'. $tid, array('html' => TRUE, 'attributes' => array('class' => 'taxonomy_image_links')));
+ return l($image, 'taxonomy/term/'. $term->tid, array('html' => TRUE, 'attributes' => array('class' => 'taxonomy_image_links')));
}
/**
| Comment | File | Size | Author |
|---|---|---|---|
| taxonomy_image-link_from_node_display_correction-20081019.patch | 1.07 KB | dman |
Comments
Comment #1
nancydruHmm, interesting. The 5.x version was already correct. Thanks, dman.
Comment #2
tedlchen commentedI just hit this same bug right now, and looked at it before I saw this post. If you're going to do the above, you'll also need to fix the caller,
Comment #3
nancydru@tedichen: The foreach should pick up the tid as the array key, which is how the taxonomy method of the node object is built. Have you seen it constructed differently?
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.