Closed (fixed)
Project:
Chaos Tool Suite (ctools)
Version:
7.x-1.0-rc1
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
9 Aug 2011 at 01:12 UTC
Updated:
20 Sep 2011 at 00:41 UTC
node_comments and core comment module comment_get_thread queries have become out of sync.
Please compare the queries in:
comment_get_thread and ctools_comment_render
The attached patch amends ctools_comment_render to use the same query approach as core.
It basically adds a tag to the query and also the node metadata.
This allows other contrib modules, such as sort_comments to interact with the comment query and add an ASC/DESC sort
Please commit if possible:
DT
| Comment | File | Size | Author |
|---|---|---|---|
| node_comments.inc_.update-comment-query-to-standard.patch | 1.25 KB | davidwhthomas |
Comments
Comment #1
merlinofchaos commentedPatch no longer applies, I think thanks to a patch by Dave Reid I committed just a few minutes ago. See #1235866: ctools_comment_render() should re-use comment_get_thread()
It may obsolete this change.
Comment #2
davidwhthomas commentedThanks for commiting the related patch, which addresses the same issue.
Calling the core api function rather than replicating it ctools makes sense and solves this issue.
Closing with thanks,
DT