[Rt-commit] rt branch, 4.2-trunk, updated. rt-4.2.11-30-g24663fe
Shawn Moore
shawn at bestpractical.com
Tue Jun 23 11:19:45 EDT 2015
The branch, 4.2-trunk has been updated
via 24663fe28336f2acab281000c8a5b6918ffb3353 (commit)
from 67e3d157e3e3bbe2a76819a9c4dd46ab44f71771 (commit)
Summary of changes:
share/html/Ticket/Graphs/index.html | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
- Log -----------------------------------------------------------------
commit 24663fe28336f2acab281000c8a5b6918ffb3353
Author: Christian Loos <cloos at netcologne.de>
Date: Fri Jun 19 12:51:08 2015 +0200
add some callbacks to Ticket/Graphs/index.html
diff --git a/share/html/Ticket/Graphs/index.html b/share/html/Ticket/Graphs/index.html
index ab19bd8..06b4a93 100644
--- a/share/html/Ticket/Graphs/index.html
+++ b/share/html/Ticket/Graphs/index.html
@@ -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'}];
-----------------------------------------------------------------------
More information about the rt-commit
mailing list