[Rt-commit] r4792 - in rtir/branches/1.9-EXPERIMENTAL: html/RTIR/Elements

ruz at bestpractical.com ruz at bestpractical.com
Wed Mar 22 09:58:31 EST 2006


Author: ruz
Date: Wed Mar 22 09:58:31 2006
New Revision: 4792

Modified:
   rtir/branches/1.9-EXPERIMENTAL/   (props changed)
   rtir/branches/1.9-EXPERIMENTAL/html/RTIR/Elements/ShowChildren

Log:
 r983 at cubic-pc:  cubic | 2006-03-22 06:31:14 +0300
 * show resolved children on incedents' display page


Modified: rtir/branches/1.9-EXPERIMENTAL/html/RTIR/Elements/ShowChildren
==============================================================================
--- rtir/branches/1.9-EXPERIMENTAL/html/RTIR/Elements/ShowChildren	(original)
+++ rtir/branches/1.9-EXPERIMENTAL/html/RTIR/Elements/ShowChildren	Wed Mar 22 09:58:31 2006
@@ -32,7 +32,7 @@
 % }
 
 % if ($Delete) {
-<i><%loc("Check box to unlink")%></i><br />
+<i><% loc("Check box to unlink") %></i><br />
 % }
 <& /Elements/TicketList, 
    Collection => $children,
@@ -52,12 +52,12 @@
 <br />
 
 % if( $FullList && $Rows > 0 && $children->Count >= $Rows ) {
-<a href="<%$FullList%>"><i><%loc("More... ([_1] total)", $children->Count)%></i></a><br />
+<a href="<% $FullList %>"><i><% loc("More... ([_1] total)", $children->Count) %></i></a><br />
 % }
 
 <%INIT>
 unless( @States ) {
-    @States = $m->comp("/RTIR/Elements/States", Queue => $Queue);
+    @States = ( $m->comp("/RTIR/Elements/States", Queue => $Queue), 'resolved' );
 }
 my @possible_states = $m->comp("/RTIR/Elements/States", Queue => $Queue, Inactive => 1 );
 my ($Type) = $m->comp("/RTIR/Elements/Type", Queue => $Queue);
@@ -67,7 +67,7 @@
     $Format = "__RTIR_Check__, " . $Format;
 }
 
-my $children = new RT::Tickets($session{'CurrentUser'});
+my $children = RT::Tickets->new( $session{'CurrentUser'} );
 $children->FromSQL( $m->comp( '/RTIR/Elements/ChildrenQuery',
                               Queue  => $Queue,
                               Ticket => $Ticket,


More information about the Rt-commit mailing list