%#
%# COPYRIGHT:
%#
-%# This software is Copyright (c) 1996-2015 Best Practical Solutions, LLC
+%# This software is Copyright (c) 1996-2019 Best Practical Solutions, LLC
%# <sales@bestpractical.com>
%#
%# (Except where explicitly superseded by other copyright notices)
% );
<%ARGS>
-$id => undef
$TicketObj => undef
$ShowHeaders => 0
$ForceShowHistory => 0
+$RedirectToBasics => 0
</%ARGS>
<%INIT>
$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;
}
my (@Actions, $title);
-unless ($id || $TicketObj) {
+unless ($ARGS{'id'} || $TicketObj) {
Abort('No ticket specified');
}
);
# This code does automatic redirection if any updates happen.
+$m->notes('RedirectToBasics' => 1) if $RedirectToBasics;
my $path = '/Ticket/'. ( $m->notes('RedirectToBasics') ? 'Modify.html'
: 'Display.html' );
MaybeRedirectForResults(