X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FTicket%2FGraphs%2Findex.html;h=db3a5460a60b41190381a9120abf729616379aa0;hp=ab19bd8af298964d486e821cdae7e607a1c91041;hb=7322f2afedcc2f427e997d1535a503613a83f088;hpb=ae14e320388fa5e7f400bff1c251ef885b7952e6 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 %# %# %# (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 &>
+% $m->callback( CallbackName => 'FormStart', ARGSRef => \%ARGS ); <& Elements/EditGraphProperties, %ARGS, Ticket => $ticket &> @@ -68,10 +71,19 @@ &>
+% $m->callback(CallbackName => 'AfterForm', ARGSRef => \%ARGS, Ticket => $ticket); + <%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'}];