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

crea’s picture

Makes sense

crea’s picture

Status: Active » Closed (won't fix)

2.x is unlikely to get any support at this point. Closing all related issues.