Closed (fixed)
Project:
Community Tags
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Feb 2008 at 21:38 UTC
Updated:
19 Aug 2008 at 07:43 UTC
community_tags_node_view, at line 226 of the current dev version, calls:
theme('community_tags', 'user_node', NULL, $user->uid, $node->nid)
but theme_community_tags only takes one argument, an array of tags to render.. therefore, when a user has tagged a node and revisits it, that user's tags are not shown and an error, “warning: Invalid argument supplied for foreach() in .. modules/tagadelic/tagadelic.module on line 285”, is produced. Eariler in community_tags_node_view $tags was populated with user node tags, so it seems like the theme call should be:
theme('community_tags', $tags)
This call does show the user's tags and eliminates the error.
A patch that makes this fix is attached.
| Comment | File | Size | Author |
|---|---|---|---|
| community_tags-community_tags_node_view.patch | 636 bytes | Biteme |
Comments
Comment #1
dropcube commentedI have committed this quick fix, but a think a more deep revision to the function community_tags_node_view() is required.
Comment #2
dropcube commentedComment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.