In a similar way as bug https://www.drupal.org/node/2308065, when using clone node module to duplicate a node it leads to the same error of duplicate entry.
PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'xxxxxxx' for key 'source': INSERT INTO {mail_tracking_source} (nid, source) ....

CommentFileSizeAuthor
#1 mail_tracking-2450973-1.patch1007 bytesaleix

Comments

aleix’s picture

StatusFileSize
new1007 bytes

Doing the same alter as in related bug, but in hook_clone_node_alter fixes it.

  • Matthijs committed 63afa8c on 7.x-1.x
    Issue #2450973: Removed duplicate code.
    
  • Matthijs committed a7599a4 on 7.x-1.x authored by aleix
    Issue #2450973 by aleix: Fixed node clone integration.
    
matthijs’s picture

Status: Active » Fixed

Patch applied and committed, thanks!

Status: Fixed » Closed (fixed)

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