[Rt-commit] rt 01/03: Include "Create" transactions when checking if there are unread messages
sunnavy
sunnavy at bestpractical.com
Tue Jul 27 21:47:46 UTC 2021
This is an automated email from the git hooks/post-receive script.
sunnavy pushed a commit to branch 4.4/ticket-search-by-unread-messages
in repository rt.
commit e993638d6a9f3b5d834c136e81199e973b8dfc4a
Author: sunnavy <sunnavy at bestpractical.com>
AuthorDate: Tue Jul 27 22:03:13 2021 +0800
Include "Create" transactions when checking if there are unread messages
Like "Comment" and "Correspond", "Create" usually also contains content
---
lib/RT/Ticket.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/RT/Ticket.pm b/lib/RT/Ticket.pm
index a6f403e0ef..d6e2d61851 100644
--- a/lib/RT/Ticket.pm
+++ b/lib/RT/Ticket.pm
@@ -2624,7 +2624,7 @@ sub SeenUpTo {
return if $attr && $attr->Content gt $self->LastUpdated;
my $txns = $self->Transactions;
- $txns->Limit( FIELD => 'Type', VALUE => [ 'Comment', 'Correspond' ], OPERATOR => 'IN' );
+ $txns->Limit( FIELD => 'Type', VALUE => [ 'Create', 'Comment', 'Correspond' ], OPERATOR => 'IN' );
$txns->Limit( FIELD => 'Creator', OPERATOR => '!=', VALUE => $uid );
$txns->Limit(
FIELD => 'Created',
--
To stop receiving notification emails like this one, please contact
sysadmin at bestpractical.com.
More information about the rt-commit
mailing list