[Rt-commit] r8597 - in rtir/branches/2.3-EXPERIMENTAL: . html/RTIR
thayes at bestpractical.com
thayes at bestpractical.com
Thu Aug 16 18:07:52 EDT 2007
Author: thayes
Date: Thu Aug 16 18:07:51 2007
New Revision: 8597
Modified:
rtir/branches/2.3-EXPERIMENTAL/ (props changed)
rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Create.html
rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Display.html
rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Edit.html
rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Incident/Create.html
rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Incident/Display.html
rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Incident/Edit.html
rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Incident/LinkToIncident.html
rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Incident/Reply.html
rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Merge.html
rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Update.html
Log:
r8832 at toth: toth | 2007-08-16 18:07:29 -0400
* Modified to add more useful information to the BeforeActionsList callback
Modified: rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Create.html
==============================================================================
--- rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Create.html (original)
+++ rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Create.html Thu Aug 16 18:07:51 2007
@@ -47,7 +47,7 @@
&>
% }
-% $m->callback(CallbackName => 'BeforeActionList', %ARGS, Ticket => $TicketObj);
+% $m->callback(CallbackName => 'BeforeActionList', %ARGS, Actions => \@results, ARGSref => \%ARGS, Ticket => $TicketObj);
<& /Elements/ListActions, actions => \@results &>
% if ( $Split && !$TicketObj->CurrentUserHasRight('ModifyTicket') ) {
Modified: rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Display.html
==============================================================================
--- rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Display.html (original)
+++ rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Display.html Thu Aug 16 18:07:51 2007
@@ -30,7 +30,7 @@
current_subtab => 'RTIR/Display.html?id='.$Ticket->id,
Title => $Title &>
-% $m->callback(CallbackName => 'BeforeActionList', %ARGS, Ticket => $Ticket);
+% $m->callback(CallbackName => 'BeforeActionList', %ARGS, Actions => \@results, ARGSref => \%ARGS, Ticket => $Ticket);
<& /Elements/ListActions, actions => \@results &>
<table border="0" cellpadding="0" cellspacing="2" width="100%">
<tr>
Modified: rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Edit.html
==============================================================================
--- rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Edit.html (original)
+++ rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Edit.html Thu Aug 16 18:07:51 2007
@@ -29,7 +29,7 @@
current_subtab => "RTIR/Edit.html?id=".$Ticket->Id,
Title => $Title &>
-% $m->callback(CallbackName => 'BeforeActionList', Ticket => $Ticket);
+% $m->callback(CallbackName => 'BeforeActionList', Actions => \@results, ARGSref => \%ARGS, Ticket => $Ticket);
<& /Elements/ListActions, actions => \@results &>
% if (!$Ticket->CurrentUserHasRight('ModifyTicket')) {
Modified: rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Incident/Create.html
==============================================================================
--- rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Incident/Create.html (original)
+++ rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Incident/Create.html Thu Aug 16 18:07:51 2007
@@ -30,7 +30,7 @@
Ticket => $TicketObj &>
-% $m->callback(CallbackName => 'BeforeActionList', %ARGS, Ticket => $TicketObj);
+% $m->callback(CallbackName => 'BeforeActionList', %ARGS, Actions => \@results, ARGSref => \%ARGS, Ticket => $TicketObj);
<& /Elements/ListActions, actions => \@results &>
<%PERL>
@@ -210,12 +210,9 @@
$ChildObj = LoadTicket( $Child );
$Child = $ARGS{'Child'} = $ChildObj->id;
$ARGS{'Subject'} ||= $ChildObj->Subject;
- $m->callback(CallbackName => 'LinkToNewIncident', ARGSref => \%ARGS, Child => $ChildObj);
}
-if($Split && ($ARGS{'CreateIncident'} || $ARGS {'CreateWithInvestigation'})) {
- $m->callback(CallbackName => 'SplitSubmitted', ARGSref => \%ARGS, Ticket => $TicketObj);
-}
+$m->callback(CallbackName => 'ProcessArguments', ARGSref => \%ARGS, Ticket => $TicketObj, Child => $ChildObj);
my $QueueObj = RT::Queue->new( $session{'CurrentUser'} );
Modified: rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Incident/Display.html
==============================================================================
--- rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Incident/Display.html (original)
+++ rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Incident/Display.html Thu Aug 16 18:07:51 2007
@@ -30,7 +30,7 @@
current_subtab => 'RTIR/Display.html?id='.$id,
Title => loc("Incident #[_1]: [_2]", $id, $TicketObj->Subject) &>
-% $m->callback(CallbackName => 'BeforeActionList', %ARGS, Ticket => $TicketObj);
+% $m->callback(CallbackName => 'BeforeActionList', %ARGS, Actions => \@results, ARGSref => \%ARGS, Ticket => $TicketObj);
<& /Elements/ListActions, actions => \@results &>
<table border="0" cellpadding="0" cellspacing="2" width="100%"><tr><td valign="top" width="50%">
Modified: rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Incident/Edit.html
==============================================================================
--- rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Incident/Edit.html (original)
+++ rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Incident/Edit.html Thu Aug 16 18:07:51 2007
@@ -30,7 +30,7 @@
Title => loc("Edit Incident #[_1]: [_2]",
$Ticket->Id, $Ticket->Subject) &>
-% $m->callback(CallbackName => 'BeforeActionList', Ticket => $Ticket);
+% $m->callback(CallbackName => 'BeforeActionList', Actions => \@results, ARGSref => \%ARGS, Ticket => $Ticket);
<& /Elements/ListActions, actions => \@results &>
% unless ( $Ticket->CurrentUserHasRight('ModifyTicket') ) {
Modified: rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Incident/LinkToIncident.html
==============================================================================
--- rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Incident/LinkToIncident.html (original)
+++ rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Incident/LinkToIncident.html Thu Aug 16 18:07:51 2007
@@ -38,7 +38,7 @@
current_subtab => "RTIR/Search/Refine.html",
&>
-% $m->callback(CallbackName => 'BeforeActionList', Ticket => $ChildObj);
+% $m->callback(CallbackName => 'BeforeActionList', ARGSref => \%ARGS, Ticket => $ChildObj);
<form action="<% RT->Config->Get('WebPath') %>/RTIR/Incident/Display.html" method="post">
<input type="hidden" name="Child" value="<% $id %>" />
Modified: rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Incident/Reply.html
==============================================================================
--- rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Incident/Reply.html (original)
+++ rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Incident/Reply.html Thu Aug 16 18:07:51 2007
@@ -35,7 +35,7 @@
current_subtab => "RTIR/Search/Refine.html",
&>
-% $m->callback(CallbackName => 'BeforeActionList', Ticket => $IncidentObj);
+% $m->callback(CallbackName => 'BeforeActionList', Actions => \@results, ARGSref => \%ARGS, Ticket => $IncidentObj);
<& /Elements/ListActions, actions => \@results &>
<form action="Reply.html" method="get">
Modified: rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Merge.html
==============================================================================
--- rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Merge.html (original)
+++ rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Merge.html Thu Aug 16 18:07:51 2007
@@ -35,7 +35,7 @@
current_subtab => 'RTIR/Search/Refine.html',
&>
-% $m->callback(CallbackName => 'BeforeActionList', Ticket => $Ticket);
+% $m->callback(CallbackName => 'BeforeActionList', Actions => \@results, ARGSref => \%ARGS, Ticket => $Ticket);
<& /Elements/ListActions, actions => \@results &>
Modified: rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Update.html
==============================================================================
--- rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Update.html (original)
+++ rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Update.html Thu Aug 16 18:07:51 2007
@@ -29,7 +29,7 @@
Title => $title &>
-% $m->callback(CallbackName => 'BeforeActionList', Ticket => $Ticket);
+% $m->callback(CallbackName => 'BeforeActionList', ARGSref => \%ARGS, Ticket => $Ticket);
<form action="Update.html" name="TicketUpdate"
method="post" enctype="multipart/form-data">
<input type="hidden" name="QuoteTransaction" value="<% $ARGS{'QuoteTransaction'} || '' %>" />
More information about the Rt-commit
mailing list