Hello!

When I deploy new changes with new mail templates to stage, I can't revert features with mail templates. I get warning and fatal error:

in_array() expects parameter 2 to be array, null given mail_edit_features.features.inc:106

WD php: PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'subscribe_announcement_confirmation-ru' for key 'PRIMARY': INSERT INTO {mail_edit} (id, language, description, subject, body, subscriptions_comment_body) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2,
:db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5); Array
(
    [:db_insert_placeholder_0] => subscribe_announcement_confirmation
    [:db_insert_placeholder_1] => ru
    [:db_insert_placeholder_2] => Human readable title of template.
    [:db_insert_placeholder_3] => Title of email [site:name]
    [:db_insert_placeholder_4] => Some email body.
    [:db_insert_placeholder_5] => 
)
 in drupal_write_record() (line 7392 of /var/www/html/nso/includes/common.inc).

Looks like problem is in mail_edit_features_features_rebuild() function.

CommentFileSizeAuthor
#2 mail_edit_features-3008576-2.patch947 bytesmikhailkrainiuk

Comments

mikhailkrainiuk created an issue. See original summary.

mikhailkrainiuk’s picture

Status: Active » Needs review
StatusFileSize
new947 bytes

I created the patch to fix it.
Verify it, please.

  • mikhailkrainiuk committed 0b9d29d on 7.x-1.x
    Issue #3008576 by mikhailkrainiuk: Duplicate primary keys in mail_edit...
mikhailkrainiuk’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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