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
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.

AttachmentSize
nodecomment.module.patch558 bytes

#1

tuffnatty - August 31, 2008 - 00:59

The same fix needs to be done in 6.x-1.x-dev.

#2

tuffnatty - September 22, 2009 - 06:38

It looks like 6.x-2.x has fixed it.

 
 

Drupal is a registered trademark of Dries Buytaert.