diff options
Diffstat (limited to 'rt/share/html/Ticket/Graphs/index.html')
-rw-r--r-- | rt/share/html/Ticket/Graphs/index.html | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/rt/share/html/Ticket/Graphs/index.html b/rt/share/html/Ticket/Graphs/index.html index ab19bd8af..db3a5460a 100644 --- a/rt/share/html/Ticket/Graphs/index.html +++ b/rt/share/html/Ticket/Graphs/index.html @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2015 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2016 Best Practical Solutions, LLC %# <sales@bestpractical.com> %# %# (Except where explicitly superseded by other copyright notices) @@ -48,11 +48,14 @@ <& /Elements/Header, Title => $title &> <& /Elements/Tabs &> +% $m->callback(CallbackName => 'BeforeActionList', Actions => \@results, ARGSRef => \%ARGS, Ticket => $ticket); + <& /Elements/ListActions, actions => \@results &> <& Elements/ShowGraph, %ARGS, Ticket => $ticket &> <form action="<% RT->Config->Get('WebPath') . $m->request_comp->path %>"> +% $m->callback( CallbackName => 'FormStart', ARGSRef => \%ARGS ); <input type="hidden" class="hidden" name="id" value="<% $id %>" /> <& Elements/EditGraphProperties, %ARGS, Ticket => $ticket &> @@ -68,10 +71,19 @@ &> </form> +% $m->callback(CallbackName => 'AfterForm', ARGSRef => \%ARGS, Ticket => $ticket); + <%ARGS> </%ARGS> <%INIT> use RT::Graph::Tickets; + +my $id = $ARGS{'id'}; +my $ticket = LoadTicket( $id ); +$ARGS{'id'} = $id = $ticket->id; + +$m->callback( TicketObj => $ticket, ARGSRef => \%ARGS ); + my @results; my @save_arguments = qw(id Direction LeadingLink ShowLinks MaxDepth FillUsing ShowLinkDescriptions); @@ -86,10 +98,6 @@ push @results, $m->comp( '/Search/Elements/EditSearches:Init', SearchFields => \@save_arguments, ); -my $id = $ARGS{'id'}; -my $ticket = LoadTicket( $id ); -$ARGS{'id'} = $id = $ticket->id; - $ARGS{'LeadingLink'} ||= 'Members'; if ( $ARGS{'ShowLinks'} && !ref $ARGS{'ShowLinks'} ) { $ARGS{'ShowLinks'} = [$ARGS{'ShowLinks'}]; |