rt 4.2.15
[freeside.git] / rt / share / html / Ticket / Display.html
index 2851d0b..d0f3f33 100755 (executable)
@@ -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');
 }