Download & Extend

nodecomment_form won't properly load in panels

Project:Node Comments
Version:6.x-2.0-beta1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

When I try and add a pane that uses nodecomment_form it breaks on that panel with the following error message:

warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '_node_form' was given in .../drupal/includes/form.inc on line 371.

Looking at the nodecomment_form.inc file the problem seems to be on with this code on line 29:

$comment_type = variable_get('comment_type_'. $node->type, variable_get('default_comment_type', ''));

I believe that the variable 'comment_type' should actually be 'node_comment_type' and adding changing that seems to fix the problem. I've attached a simple patch.

AttachmentSize
comment_form_ctools.patch791 bytes

Comments

#1

Status:active» reviewed & tested by the community

Hi,

I confirm the issue and I confirm that the patch correctly fix it.

#2

confirmed, patch works

#3

Status:reviewed & tested by the community» fixed

I belive this was fixed already without marking the issue fixed. Please reopen if the problem exists in latest beta/dev.

#4

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.