node_comment_nodeapi($node, 'load', ...) does not set $comment_data['comment_target_cid'] from DB
tuffnatty - June 19, 2008 - 22:24
| Project: | Node comments |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Jump to:
Description
As a result of this, hook_form_alter() (as well as the internal nodecomment_form_alter()) can't detect if the node is a reply to another comment while altering $type.'_node_form', when an existing comment is being edited, not created. Here is a patch that fixes it.
| Attachment | Size |
|---|---|
| nodecomment.module.patch | 558 bytes |

#1
The same fix needs to be done in 6.x-1.x-dev.
#2
It looks like 6.x-2.x has fixed it.