[Rt-commit] rt branch, 4.4/fix-deserialize-recently-viewed-tickets, created. rt-4.4.3-61-g12ad6d48a

Craig Kaiser craig at bestpractical.com
Mon Oct 29 16:52:38 EDT 2018


The branch, 4.4/fix-deserialize-recently-viewed-tickets has been created
        at  12ad6d48afb1c6a0902224adaa3c5c2d91e54a01 (commit)

- Log -----------------------------------------------------------------
commit 12ad6d48afb1c6a0902224adaa3c5c2d91e54a01
Author: Craig Kaiser <craig at bestpractical.com>
Date:   Mon Oct 29 16:24:06 2018 -0400

    Check if attribute content exist not the attribute

diff --git a/lib/RT/User.pm b/lib/RT/User.pm
index daae994e7..4003d3451 100644
--- a/lib/RT/User.pm
+++ b/lib/RT/User.pm
@@ -2082,8 +2082,8 @@ Returns a list of two-element (ticket id, timestamp) array references ordered by
 
 sub RecentlyViewedTickets {
     my $self = shift;
-    my $content = $self->FirstAttribute('RecentlyViewedTickets');
-    return $content ? @{$content->Content} : ();
+    my $content = $self->FirstAttribute('RecentlyViewedTickets')->Content;
+    return $content ? @{$content} : ();
 }
 
 =head2 AddRecentlyViewedTicket TICKET

-----------------------------------------------------------------------


More information about the rt-commit mailing list