[open-ils-commits] r14866 - trunk/Open-ILS/src/perlmods/OpenILS/Application (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Nov 11 10:40:12 EST 2009
Author: erickson
Date: 2009-11-11 10:40:09 -0500 (Wed, 11 Nov 2009)
New Revision: 14866
Modified:
trunk/Open-ILS/src/perlmods/OpenILS/Application/Trigger.pm
Log:
added support for optional limit, offset, and order_by filters to open-ils.trigger.events_by_target
Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/Trigger.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/Trigger.pm 2009-11-11 09:13:02 UTC (rev 14865)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/Trigger.pm 2009-11-11 15:40:09 UTC (rev 14866)
@@ -247,7 +247,11 @@
order_by => { "atev" => [ 'run_time', 'add_time' ] }
};
+ $query->{limit} = $filter->{limit} if defined $filter->{limit};
+ $query->{offset} = $filter->{offset} if defined $filter->{offset};
+ $query->{order_by} = $filter->{order_by} if defined $filter->{order_by};
+
# allow multiple 'target' filters
$query->{where}->{'+atev'}->{'-and'} = [];
More information about the open-ils-commits
mailing list