[Rt-commit] [rtir] 02/03: Stop choosing an Incident for the User.

Kevin Falcone falcone at bestpractical.com
Wed Jul 3 17:11:50 EDT 2013


This is an automated email from the git hooks/post-receive script.

falcone pushed a commit to branch 2.9/split-multiple-incidents
in repository rtir.

commit 62505c06178fa22f0cd02d7e4f8efdfd26275dd3
Author: Kevin Falcone <falcone at bestpractical.com>
Date:   Fri Jun 21 17:35:17 2013 -0400

    Stop choosing an Incident for the User.
    
    In 2.4/2.6 this UI hid the choice of Incidents from the end user.  You
    could have a Report linked to two Incidents and RTIR would display and
    then use only the first Incident.
    
    Now it at least obeys input from the end user as to which Incident to
    link to after the Report is linked.
---
 html/RTIR/Split.html | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/html/RTIR/Split.html b/html/RTIR/Split.html
index 51da8e4..8930deb 100644
--- a/html/RTIR/Split.html
+++ b/html/RTIR/Split.html
@@ -62,7 +62,7 @@
     %ARGS,
 
     Split            => $Split,
-    Incident         => $incident,
+    Incident         => \@Incident,
 &>
 
 <%INIT>
@@ -76,15 +76,9 @@ if ( $m->comp_exists("/RTIR/$Type/Split.html") ) {
     return $m->comp( "/RTIR/$Type/Split.html", %ARGS );
 }
 
-my $incident;
-my $incidents = RT::Tickets->new( $session{'CurrentUser'} );
-$incidents->FromSQL( RT::IR->ActiveQuery( Queue => 'Incidents', HasMember => $TicketObj ) );
-if ( my $obj = $incidents->First ) {
-    $incident = $obj->id;
-}
-
 </%INIT>
 <%ARGS>
 $QuoteTransaction => undef
 $Split => undef
+ at Incident => ()
 </%ARGS>

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Rt-commit mailing list