Commit 7134663f authored by joubu's avatar joubu Committed by Galen Charlton

Bug 11209: (follow-up) message content must also match for new message to be considered a duplicate

If the template contains dynamic parts, the message won't be
considerated as duplicated.
Signed-off-by: default avatarMarcel de Rooy <>
Duplicate messages will be queued, but when sending the queued messages
duplicates are found and are marked as failed.
Signed-off-by: Galen Charlton's avatarGalen Charlton <>
parent 0a366e19
......@@ -1035,7 +1035,8 @@ sub _is_duplicate {
AND letter_code = ?
AND CAST(time_queued AS date) = CAST(NOW() AS date)
AND status="sent"
|, {}, $message->{message_transport_type}, $message->{borrowernumber}, $message->{letter_code} );
AND content = ?
|, {}, $message->{message_transport_type}, $message->{borrowernumber}, $message->{letter_code}, $message->{content} );
return $count;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment