When i try to update anonymous' s user comment from /admin/content/comment it will give below exception.

Drupal\Core\Database\IntegrityConstraintViolationException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '54' for key 'PRIMARY': INSERT INTO {comment_notify} (cid, notify, notify_hash) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2); Array ( [:db_insert_placeholder_0] => 54 [:db_insert_placeholder_1] => 0 [:db_insert_placeholder_2] => vi1-ladBlR7VJB3aJG4oAUlJ7lrl5eP0qWwsqCQYX8c ) in Drupal\Core\Database\Connection->handleQueryException()

Comments

Bunty Badgujar created an issue. See original summary.

bunty badgujar’s picture

damienmckenna’s picture

Version: 8.x-1.0-beta1 » 8.x-1.x-dev
Status: Active » Needs work

This needs a little polish to match the Drupal coding standards.

damienmckenna’s picture

Status: Needs work » Needs review
Parent issue: » #2770889: Comment Notify Next release - 8.x-1.0-beta5
StatusFileSize
new1.33 KB
new1.2 KB

I fixed the minor issues.

bunty badgujar’s picture

Thanks @DamienMcKenna :)

prajaankit’s picture

StatusFileSize
new48.87 KB

Hi Bunty,

i Tested this patch , its working fine

prajaankit’s picture

nkoporec’s picture

Status: Needs review » Reviewed & tested by the community

Tested the patch and it removes the bug.Moving to RTBC.

greggles’s picture

Status: Reviewed & tested by the community » Fixed

OK, thanks for your work on this, everyone!

I've committed this and created a new release https://www.drupal.org/project/comment_notify/releases/8.x-1.0-beta2

Status: Fixed » Closed (fixed)

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