Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
With Comment Notify enabled, clicking the "approve" link (which is provided by Drupal 7) on an unpublished comment does not actually unpublish the comment.
This is due to the fact that Comment Notify implements hook_comment_update() and tries to insert a comment property into its database tables that doesn't exist (because the property is only added on the comment form). This leads to an SQL error, and Drupal responds by rolling back the database transaction.
The attached patch should fix it. I'm guessing there are other bugs that would stem from this as well.
Comment | File | Size | Author |
---|---|---|---|
comment-notify-fix-comment-updates.patch | 903 bytes | David_Rothstein | |
Comments
Comment #1
gregglesThanks, David. I'll try to get to this today.
Comment #3
vegantriathleteI was able to verify the behavior you specified. I noticed the behavior both through the approve link on the node itself as well as through the unapproved comments through the content interface.
The patch applied successfully and corrected the problem in both instances.
Comment #4
gregglesNow applied http://drupal.org/cvs?commit=350162