Bug 11209: (follow-up) check if a notice has been already sent today
The previous patch checks if a notice has already been sent when the current notices has been sent in queue. Which is wrong! We have to check if a similar notice has been sent today. This patch has been created after an observation on a production server: If a user place on holds several items, he will receive 1 SMS per hold. Here we only want 1 SMS for all holds. Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Galen Charlton <gmc@esilibrary.com>
This commit is contained in:
parent
159e99f3bc
commit
0a366e19de
1 changed files with 2 additions and 2 deletions
|
@ -1033,9 +1033,9 @@ sub _is_duplicate {
|
|||
WHERE message_transport_type = ?
|
||||
AND borrowernumber = ?
|
||||
AND letter_code = ?
|
||||
AND CAST(time_queued AS date) = CAST(? AS date)
|
||||
AND CAST(time_queued AS date) = CAST(NOW() AS date)
|
||||
AND status="sent"
|
||||
|, {}, $message->{message_transport_type}, $message->{borrowernumber}, $message->{letter_code}, $message->{time_queued} );
|
||||
|, {}, $message->{message_transport_type}, $message->{borrowernumber}, $message->{letter_code} );
|
||||
return $count;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue