Problem

  • When upgrading from D6 to D7, no postBody is sent for protected comment forms.

Cause

  • The comment body was a simple entity property in D6, exposed as 'comment' form element.
  • In D7, the body is a field, and its name changed to 'comment_body[...]'.
  • The configured form protection still refers to 'comment', and thus no postBody is sent to Mollom.
CommentFileSizeAuthor
#1 mollom.upgrade-comment-body.1.patch729 bytessun
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sun’s picture

Issue summary: View changes
Status: Active » Needs review
FileSize
729 bytes

Attached patch fixes the (existing) upgrade path.

sun’s picture

Title: Upgrade from D6 to D7 does not update the 'body' fields in enabled_fields of protected forms » D6 to D7 upgrade does not update the comment body field name of protected forms.
Issue summary: View changes
Status: Needs review » Fixed

Committed to all branches.

A new development snapshot will be available within the next 12 hours. This improvement will be available in the next official release.

Status: Fixed » Closed (fixed)

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

  • Commit 389c602 on 7.x-2.x, 8.x-2.x, fbajs, actions by sun:
    - #1965908 by sun: Fixed D6 to D7 upgrade does not update the comment...

  • Commit 389c602 on 7.x-2.x, 8.x-2.x, fbajs, actions by sun:
    - #1965908 by sun: Fixed D6 to D7 upgrade does not update the comment...