When I create a node, the comments of the auto created referenced (sub)nodes are disabled.
Is there any way to enable those comments by default?

Also when I enabled the comments of the subnodes after creation of the parent node, and tried to add a comment, these wouldn't show.
Thanx for your help.

Comments

boombatower’s picture

Status: Active » Postponed (maintainer needs more info)

This module should have no effect on the default node settings. Meaning if you set comments as enabled by default for the content type you are using they should be enabled when node reference auto-create makes the node.

Oleksa-1’s picture

When I create a node, the comments of the auto created referenced (sub)nodes are disabled.
Is there any way to enable those comments by default?

same problem. Even if by default in settings of both content types it is "read and write" for comments.

But if i create this content type separatly (not as noderefference) then comments are enabled...

for the moment i use in nodereference_autocreate.module :
$node->comment = 2;

else {
      // Create a new node with the specified title.
      $node = new stdClass();
      $node->type = nodereference_autocreate_type_get($field['referenceable_types']);
      $node->title = $value;
      $node->comment = 2;
      node_save($node);

and then comments are enabled

http://drupal.org/node/213007