[Bps-public-commit] r10962 - RT-Extension-Reports/html/Reports/Types
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Fri Feb 29 05:16:31 EST 2008
Author: sunnavy
Date: Fri Feb 29 05:16:27 2008
New Revision: 10962
Modified:
RT-Extension-Reports/html/Reports/Types/TicketsNumber
Log:
filter is a query
Modified: RT-Extension-Reports/html/Reports/Types/TicketsNumber
==============================================================================
--- RT-Extension-Reports/html/Reports/Types/TicketsNumber (original)
+++ RT-Extension-Reports/html/Reports/Types/TicketsNumber Fri Feb 29 05:16:27 2008
@@ -61,10 +61,15 @@
<td><& /Elements/SelectDate, Name => 'EndDate', current => 0, Default =>
$EndDate &>
</tr>
+<tr>
+<td><&|/l&>Filter</&></td>
+<td><textarea name="Filter" cols="20" rows="5"><% $Filter %></textarea>
+</tr>
<tr><td /><td>
<input type="hidden" name="Run" value=1>
<input type="submit" value="submit" />
</td>
+</tr>
<table>
</form>
@@ -102,7 +107,7 @@
$end_date->AddDay; # we want the date ranage to be inclusive
my $tickets = RT::Tickets->new( $session{CurrentUser} );
$tickets->FromSQL( q{ Created >= '} . $start_date->ISO . q{ ' AND
-Created < '} . $end_date->ISO . q{'} );
+Created < '} . $end_date->ISO . q{'} . qq{ AND ( $Filter ) } );
my $tmp_date = RT::Date->new( $session{CurrentUser} );
$tmp_date->Set( Value => $start_date->Unix );
@@ -131,5 +136,6 @@
$StartDate => undef
$EndDate => undef
$Run => undef
+$Filter => undef
</%ARGS>
More information about the Bps-public-commit
mailing list