When using the nodecomments module, after editing an editablefield on a node that uses a node type for comments (instead of using the default drupal comments) the nodes default comment setting is changed to "Disabled". It is caused by the node_save() calls in the editablefields_submit() function in the editablefields.module. In node_save() the wrong value is written into the database, so on a reload of the node the setting has changed and the comments are not showing any more.

I wrote a patch for it based on editablefields-6.x-2.0.

Enjoy!

CommentFileSizeAuthor
editablefields.nodecomment.patch2.78 KBJan van Diepen

Comments

Jan van Diepen’s picture

Status: Active » Needs review

Can this be added to the development branch?

Jan van Diepen’s picture

Version: 6.x-2.0 » 6.x-2.x-dev

Sorry , I just remembered I'm a maintainer myself.

Patch added to development branch 6.x-2.x-dev.

Made some minor changes:

  1. Created a custom node_save() function.
  2. Reduced the code by removing obsolete lines.
joelpittet’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)

Last update was 2012, going to close as outdated because it's against 6.x branch.