- Issue created by @MarcKwee
When using the preview module incombination with taxonomy terms & paragraphs, there is a chance to get a hard - MYSQL error.
Drupal\Core\Entity\EntityStorageException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '2fd25df5-46f1-41e5-aa09-b043cc74478e' for key 'paragraphs_item.paragraph_field__uuid__value': INSERT INTO "paragraphs_item" ("revision_id", "type", "uuid", "langcode") VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3); Array ( [:db_insert_placeholder_0] => [:db_insert_placeholder_1] => body [:db_insert_placeholder_2] => 2fd25df5-46f1-41e5-aa09-b043cc74478e [:db_insert_placeholder_3] => nl ) in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (line 817 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php)
I wrote a patch that gets the UUID from the URL.
Active
1.0
Code