From 4f9de9f91b022c8919d940968c31a4313cd09ff7 Mon Sep 17 00:00:00 2001 From: Andreas Jonsson Date: Sun, 26 Nov 2017 14:10:38 -0300 Subject: [PATCH] Bug 19675: Fix update notice templates when they are translatable Avoid the following error: DBD::mysql::db do failed: Duplicate entry 'acquisition-xxx--email-default' for key 'PRIMARY' [for Statement " Signed-off-by: Jonathan Druart --- tools/letter.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/letter.pl b/tools/letter.pl index d0c52c2120..922207958a 100755 --- a/tools/letter.pl +++ b/tools/letter.pl @@ -309,11 +309,11 @@ sub add_validate { q{ UPDATE letter SET branchcode = ?, module = ?, name = ?, is_html = ?, title = ?, content = ?, lang = ? - WHERE branchcode = ? AND module = ? AND code = ? AND message_transport_type = ? + WHERE branchcode = ? AND module = ? AND code = ? AND message_transport_type = ? AND lang = ? }, undef, $branchcode || '', $module, $name, $is_html || 0, $title, $content, $lang, - $branchcode, $oldmodule, $code, $mtt + $branchcode, $oldmodule, $code, $mtt, $lang ); } else { $dbh->do( -- 2.39.5