[Rt-commit] rt branch, 4.4/fix-deserialize-recently-viewed-tickets, created. rt-4.4.3-61-g101663bd1
Craig Kaiser
craig at bestpractical.com
Mon Oct 29 16:44:46 EDT 2018
The branch, 4.4/fix-deserialize-recently-viewed-tickets has been created
at 101663bd1bb095ff1da85b32d83ba69bfd97a11c (commit)
- Log -----------------------------------------------------------------
commit 101663bd1bb095ff1da85b32d83ba69bfd97a11c
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..f5c272348 100644
--- a/lib/RT/User.pm
+++ b/lib/RT/User.pm
@@ -2082,7 +2082,7 @@ Returns a list of two-element (ticket id, timestamp) array references ordered by
sub RecentlyViewedTickets {
my $self = shift;
- my $content = $self->FirstAttribute('RecentlyViewedTickets');
+ my $content = $self->FirstAttribute('RecentlyViewedTickets')->Content;
return $content ? @{$content->Content} : ();
}
-----------------------------------------------------------------------
More information about the rt-commit
mailing list