[Rt-commit] r4260 - in rtir/branches/1.9-EXPERIMENTAL: .
html/RTIR/Report
ruz at bestpractical.com
ruz at bestpractical.com
Wed Dec 7 07:59:30 EST 2005
Author: ruz
Date: Wed Dec 7 07:59:30 2005
New Revision: 4260
Modified:
rtir/branches/1.9-EXPERIMENTAL/ (props changed)
rtir/branches/1.9-EXPERIMENTAL/html/RTIR/Report/BulkReject.html
Log:
r462 at cubic-pc: cubic | 2005-12-07 16:01:19 +0300
r454 at cubic-pc: cubic | 2005-12-07 15:49:42 +0300
* add BaseQuery to the QueryString
Modified: rtir/branches/1.9-EXPERIMENTAL/html/RTIR/Report/BulkReject.html
==============================================================================
--- rtir/branches/1.9-EXPERIMENTAL/html/RTIR/Report/BulkReject.html (original)
+++ rtir/branches/1.9-EXPERIMENTAL/html/RTIR/Report/BulkReject.html Wed Dec 7 07:59:30 2005
@@ -104,13 +104,13 @@
}
if ( $t->Owner != $session{'CurrentUser'}->id &&
- $t->Owner == $RT::Nobody->id ) {
+ $t->Owner == $RT::Nobody->id )
+ {
my ( $res, $msg ) = $t->Take;
unless( $res ) {
push( @tempresults, [ $id, loc("Couldn't take ticket: [_1]", $msg) ] );
} else {
- push( @tempresults, [ $id, loc("Took ticket.") ] );
- push( @tempresults, [ $id, $msg ] ) if $msg;
+ push( @tempresults, [ $id, loc("Took ticket. [_1]", $msg) ] );
}
}
@@ -130,34 +130,24 @@
$session{'tickets'}->RedoSearch;
}
-
# FIXME: Doesn't work as expected with refined search.
# also is not clear should it use Query from
# /RTIR/Search/Results.html?Queue=Incident%20Reports or
# own? and can it be refined at all?
-if ( !$Query ) {
- # We can only reject new tickets, so set the states.
- $Query = $m->comp(
- '/RTIR/Elements/NewQuery',
- Queue => $Queue,
- states => ['new'],
- );
-}
+$BaseQuery ||= $m->comp( '/RTIR/Elements/BaseQuery', Queue => $Queue );
+$Query ||= $m->comp( '/RTIR/Elements/NewQuery', Queue => $Queue, states => 'new' );
my $QueryString = $m->comp(
'/Elements/QueryString',
- Query => $Query,
- Format => $Format,
- Rows => $Rows,
- OrderBy => $OrderBy,
- Order => $Order,
- Page => $Page
+ BaseQuery => $BaseQuery,
+ Query => $Query,
+ Format => $Format,
+ Rows => $Rows,
+ OrderBy => $OrderBy,
+ Order => $Order,
+ Page => $Page
);
-if ( !$BaseQuery ) {
- $BaseQuery = $m->comp( '/RTIR/Elements/BaseQuery', Queue => $Queue );
-}
-
$Query = "$BaseQuery AND ( $Query )";
my $path = "RTIR/Search/Refine.html?$QueryString&";
$path .= $m->comp( '/Elements/QueryString',
More information about the Rt-commit
mailing list