diff options
Diffstat (limited to 'rt/share/html/Ticket/Graphs')
-rw-r--r-- | rt/share/html/Ticket/Graphs/Elements/EditGraphProperties | 2 | ||||
-rw-r--r-- | rt/share/html/Ticket/Graphs/Elements/ShowGraph | 2 | ||||
-rw-r--r-- | rt/share/html/Ticket/Graphs/Elements/ShowLegends | 2 | ||||
-rw-r--r-- | rt/share/html/Ticket/Graphs/dhandler | 2 | ||||
-rw-r--r-- | rt/share/html/Ticket/Graphs/index.html | 18 |
5 files changed, 17 insertions, 9 deletions
diff --git a/rt/share/html/Ticket/Graphs/Elements/EditGraphProperties b/rt/share/html/Ticket/Graphs/Elements/EditGraphProperties index 45dbd7dcd..fcb1f669f 100644 --- a/rt/share/html/Ticket/Graphs/Elements/EditGraphProperties +++ b/rt/share/html/Ticket/Graphs/Elements/EditGraphProperties @@ -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) diff --git a/rt/share/html/Ticket/Graphs/Elements/ShowGraph b/rt/share/html/Ticket/Graphs/Elements/ShowGraph index 88bb79ffc..5535f3421 100644 --- a/rt/share/html/Ticket/Graphs/Elements/ShowGraph +++ b/rt/share/html/Ticket/Graphs/Elements/ShowGraph @@ -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) diff --git a/rt/share/html/Ticket/Graphs/Elements/ShowLegends b/rt/share/html/Ticket/Graphs/Elements/ShowLegends index b33f5409e..549c19662 100644 --- a/rt/share/html/Ticket/Graphs/Elements/ShowLegends +++ b/rt/share/html/Ticket/Graphs/Elements/ShowLegends @@ -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) diff --git a/rt/share/html/Ticket/Graphs/dhandler b/rt/share/html/Ticket/Graphs/dhandler index 7b018ed05..29c3d021d 100644 --- a/rt/share/html/Ticket/Graphs/dhandler +++ b/rt/share/html/Ticket/Graphs/dhandler @@ -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) 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'}]; |