summaryrefslogtreecommitdiff
path: root/rt/share/html/Ticket/Display.html
diff options
context:
space:
mode:
Diffstat (limited to 'rt/share/html/Ticket/Display.html')
-rwxr-xr-xrt/share/html/Ticket/Display.html9
1 files changed, 4 insertions, 5 deletions
diff --git a/rt/share/html/Ticket/Display.html b/rt/share/html/Ticket/Display.html
index 2851d0b..d0f3f33 100755
--- a/rt/share/html/Ticket/Display.html
+++ b/rt/share/html/Ticket/Display.html
@@ -2,7 +2,7 @@
%#
%# COPYRIGHT:
%#
-%# This software is Copyright (c) 1996-2017 Best Practical Solutions, LLC
+%# This software is Copyright (c) 1996-2018 Best Practical Solutions, LLC
%# <sales@bestpractical.com>
%#
%# (Except where explicitly superseded by other copyright notices)
@@ -95,7 +95,6 @@
% );
<%ARGS>
-$id => undef
$TicketObj => undef
$ShowHeaders => 0
$ForceShowHistory => 0
@@ -107,8 +106,8 @@ $RedirectToBasics => 0
$m->callback( TicketObj => $TicketObj, ARGSRef => \%ARGS, CallbackName => 'Initial' );
if ( ! $ARGS{'NoRedirect'} && RT::Interface::Web->MobileClient()) {
- $id ||= $TicketObj->id if $TicketObj;
- RT::Interface::Web::Redirect(RT->Config->Get('WebURL').'m/ticket/show?id='.$id);
+ $ARGS{'id'} ||= $TicketObj->id if $TicketObj;
+ RT::Interface::Web::Redirect(RT->Config->Get('WebURL').'m/ticket/show?id='.$ARGS{'id'});
$m->abort;
}
@@ -116,7 +115,7 @@ if ( ! $ARGS{'NoRedirect'} && RT::Interface::Web->MobileClient()) {
my (@Actions, $title);
-unless ($id || $TicketObj) {
+unless ($ARGS{'id'} || $TicketObj) {
Abort('No ticket specified');
}