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()

Support from Acquia helps fund testing for Drupal Acquia logo

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

I fixed the minor issues.

Bunty Badgujar’s picture

Thanks @DamienMcKenna :)

prajaankit’s picture

FileSize
48.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.