X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=rt%2Fshare%2Fhtml%2FTicket%2FDisplay.html;h=7284e124f7cc890af3d467026a3a493a284df55b;hb=44dd00a3ff974a17999e86e64488e996edc71e3c;hp=2851d0ba261a26175abdb503f83907f69828a933;hpb=de9d037528895f7151a9aead6724ce2df95f9586;p=freeside.git diff --git a/rt/share/html/Ticket/Display.html b/rt/share/html/Ticket/Display.html index 2851d0ba2..7284e124f 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-2019 Best Practical Solutions, LLC %# %# %# (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'); }