Closed (won't fix)
Project:
Node Comments
Version:
6.x-2.0-beta6
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Jul 2010 at 16:53 UTC
Updated:
16 Nov 2012 at 12:38 UTC
When accessing node/add/sometype/123, although I was using the last nid number for another thing, nodecomment added the related node's view to the current node/add form. This is because it doesn't check whether we're actually trying to add a comment to the node or not.
I've solved this problem changing this line in function nodecomment_form_alter:
if (isset($form['type']) && isset($form['type']['#value']) ) {
with this:
if (isset($form['type']) && isset($form['type']['#value']) && arg(2) == nodecomment_get_comment_type($form['type']['#value'])) {
Hope that helps someone else.
Comments
Comment #1
crea commentedMakes sense
Comment #2
crea commented2.x is unlikely to get any support at this point. Closing all related issues.