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()
Comment | File | Size | Author |
---|---|---|---|
#6 | 2018-02-26_1236.png | 48.87 KB | prajaankit |
#4 | comment_notify-n2877283-4.interdiff.txt | 1.2 KB | DamienMcKenna |
#4 | comment_notify-n2877283-4.patch | 1.33 KB | DamienMcKenna |
| |||
#2 | integrity_constraint_violation_2877283_1.patch | 1.16 KB | Bunty Badgujar |
|
Comments
Comment #2
Bunty Badgujar CreditAttribution: Bunty Badgujar commentedComment #3
DamienMcKennaThis needs a little polish to match the Drupal coding standards.
Comment #4
DamienMcKennaI fixed the minor issues.
Comment #5
Bunty Badgujar CreditAttribution: Bunty Badgujar commentedThanks @DamienMcKenna :)
Comment #6
prajaankit CreditAttribution: prajaankit at ]init[ AG commentedHi Bunty,
i Tested this patch , its working fine
Comment #7
prajaankit CreditAttribution: prajaankit at ]init[ AG commentedComment #8
nkoporecTested the patch and it removes the bug.Moving to RTBC.
Comment #10
gregglesOK, 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