X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FTicket%2FDisplay.html;fp=rt%2Fshare%2Fhtml%2FTicket%2FDisplay.html;h=d0f3f337848745aff2279fa3f86caa2acf039b34;hp=2851d0ba261a26175abdb503f83907f69828a933;hb=187086c479a09629b7d180eec513fb7657f4e291;hpb=4639e25a658d9a0bf295415642fae8e8cdad846a diff --git a/rt/share/html/Ticket/Display.html b/rt/share/html/Ticket/Display.html index 2851d0ba2..d0f3f3378 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 %# %# %# (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'); }