[Rt-commit] r10363 - rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Elements

ruz at bestpractical.com ruz at bestpractical.com
Tue Jan 15 18:35:26 EST 2008


Author: ruz
Date: Tue Jan 15 18:35:25 2008
New Revision: 10363

Modified:
   rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Elements/ShowChildren

Log:
* move code to the place where it's only required

Modified: rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Elements/ShowChildren
==============================================================================
--- rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Elements/ShowChildren	(original)
+++ rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Elements/ShowChildren	Tue Jan 15 18:35:25 2008
@@ -24,7 +24,7 @@
 %# END LICENSE BLOCK
 
 % if( $ShowStatesSelector ) {
-%   foreach my $s( @possible_states ) {
+%   foreach my $s( RT::IR::States( Queue => $Queue, Inactive => 1 ) ) {
 %       my $checked = (grep { $_ eq $s } @States)? 'checked': '';
 <input type="checkbox" name="States" value="<% $s %>" <% $checked %> />&nbsp;<% $s %>
 %   }
@@ -60,7 +60,6 @@
 unless( @States ) {
     @States = ( RT::IR::States( Queue => $Queue ), 'resolved', 'removed' );
 }
-my @possible_states = RT::IR::States( Queue => $Queue, Inactive => 1 );
 my $Type = RT::IR::TicketType( Queue => $Queue );
 
 $Format ||= RT->Config->Get('RTIRSearchResultFormats')->{'Child' . $Type};


More information about the Rt-commit mailing list