From 4aa356436a9ad2fab31bc0ef763cd678a4dc910c Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Wed, 2 Mar 2016 10:30:24 -0500 Subject: [PATCH] LP#1312699 Circ history clear-all repair Repairs circ ID filter to allow all items in circ history to clear when patrons disable circulation history. open-ils.cstore will fail on {in => undef} queries. Signed-off-by: Bill Erickson Signed-off-by: Kathy Lussier --- Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm index 873ad3ba65..40bb6a6e9c 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm @@ -4279,11 +4279,12 @@ sub user_circ_history { $limits{limit} = $options->{limit} if defined $options->{limit}; } - my $circ_id_list = $options->{circ_ids} ? $options->{circ_ids} : undef; + my %circ_id_filter = $options->{circ_ids} ? + (id => $options->{circ_ids}) : (); my $circs = $e->search_action_user_circ_history([ { usr => $e->requestor->id, - id => {'in' => $circ_id_list}, + %circ_id_filter }, { # order newest to oldest by default order_by => {auch => 'xact_start DESC'}, -- 2.43.2