[Rt-devel] RT 3.4.5 Bulk update ignores limit to the number of rows

Norton, Ian i.norton at lancaster.ac.uk
Tue Apr 25 18:41:57 EDT 2006


Hi All,

Bulk update in 3.4.5 seems to ignore any limit to the number of
rows returned by a query.

Here's a patch that works for me:

<PATCH>
--- html/Search/Bulk.html 2005-04-18 02:43:44.000000000 +0100
+++ html/Search/Bulk.html 2006-04-25 23:33:46.000000000 +0100
@@ -190,6 +190,8 @@
 
 my $Tickets = RT::Tickets->new($session{'CurrentUser'});
 $Tickets->FromSQL($ARGS{'Query'});
+$Tickets->RowsPerPage($ARGS{'Rows'}) if ($ARGS{'Rows'});
+$Tickets->GotoPage($ARGS{'Page'}-1); # SB uses page 0 as the first page
 
 Abort(loc("No search to operate on.")) unless ($Tickets);
 
</PATCH>

Thanks for all the great work guys!

Ian.


More information about the Rt-devel mailing list