[Rt-commit] rtir branch, 4.0/recent-tickets-list, created. 4.0.0-17-g98d2925
Dustin Collins
strega at bestpractical.com
Mon Jan 9 11:16:26 EST 2017
The branch, 4.0/recent-tickets-list has been created
at 98d29256b373ffbba33f098fdb984b62fdc9df27 (commit)
- Log -----------------------------------------------------------------
commit 98d29256b373ffbba33f098fdb984b62fdc9df27
Author: Dustin Collins <strega at bestpractical.com>
Date: Mon Jan 9 11:16:10 2017 -0500
Update recently viewed tickets list when viewing ticket pages
diff --git a/html/RTIR/Advanced.html b/html/RTIR/Advanced.html
index 5f61918..9d74b75 100644
--- a/html/RTIR/Advanced.html
+++ b/html/RTIR/Advanced.html
@@ -143,6 +143,8 @@ unless ($Ticket->CurrentUserHasRight('ShowTicket')) {
my $Type = RT::IR::TicketType( Ticket => $Ticket );
my $Title = loc("Advanced edit $Type #[_1]", $id);
+$Ticket->CurrentUser->AddRecentlyViewedTicket($Ticket);
+
</%INIT>
<%ARGS>
$id => undef
diff --git a/html/RTIR/Display.html b/html/RTIR/Display.html
index adf96b8..21f898e 100644
--- a/html/RTIR/Display.html
+++ b/html/RTIR/Display.html
@@ -297,6 +297,8 @@ if (defined $Ticket->TimeLeft && $Ticket->TimeLeft > 0 ) {
my $attachments = $Ticket->Attachments;
+$Ticket->CurrentUser->AddRecentlyViewedTicket($Ticket);
+
</%INIT>
<%ARGS>
diff --git a/html/RTIR/Edit.html b/html/RTIR/Edit.html
index accf57a..dbdd367 100644
--- a/html/RTIR/Edit.html
+++ b/html/RTIR/Edit.html
@@ -266,6 +266,9 @@ if (RT::IR->IsReportQueue($Ticket->QueueObj)) {
unless ($Ticket->CurrentUserHasRight('ShowTicket')) {
Abort("No permission to view ticket");
}
+
+$Ticket->CurrentUser->AddRecentlyViewedTicket($Ticket);
+
</%INIT>
<%ARGS>
diff --git a/html/RTIR/Incident/Display.html b/html/RTIR/Incident/Display.html
index bf96a01..40bd9d8 100644
--- a/html/RTIR/Incident/Display.html
+++ b/html/RTIR/Incident/Display.html
@@ -343,6 +343,8 @@ if ( defined $TicketObj->TimeLeft && $TicketObj->TimeLeft > 0 ) {
my $attachments = $TicketObj->Attachments;
+$TicketObj->CurrentUser->AddRecentlyViewedTicket($TicketObj);
+
</%INIT>
<%ARGS>
diff --git a/html/RTIR/Incident/Reply/index.html b/html/RTIR/Incident/Reply/index.html
index 710234c..1f1196d 100644
--- a/html/RTIR/Incident/Reply/index.html
+++ b/html/RTIR/Incident/Reply/index.html
@@ -258,6 +258,8 @@ my $BaseURL = RT::IR->HREFTo("Incident/Reply/?".
my $candidates = RT::IR->IncidentChildren( $IncidentObj, Lifecycle => \@lifecycles )->Count;
+$IncidentObj->CurrentUser->AddRecentlyViewedTicket($IncidentObj);
+
</%INIT>
<%ARGS>
diff --git a/html/RTIR/Update.html b/html/RTIR/Update.html
index f54b15b..6b345ef 100644
--- a/html/RTIR/Update.html
+++ b/html/RTIR/Update.html
@@ -246,6 +246,8 @@ if ( !$checks_failure && $SubmitTicket ) {
return $m->comp('/RTIR/Display.html', %ARGS);
}
+$Ticket->CurrentUser->AddRecentlyViewedTicket($Ticket);
+
</%INIT>
<%ARGS>
-----------------------------------------------------------------------
More information about the rt-commit
mailing list