From d9a7ebb725862efd98d52cd121410eb2d175f957 Mon Sep 17 00:00:00 2001 From: Lebbeous Fogle-Weekley Date: Fri, 28 Oct 2011 08:39:30 -0400 Subject: [PATCH] Tpac: for staff saved searches, get org unit setting with right context Use the user's ws_ou, since this is a staff-client feature. Signed-off-by: Lebbeous Fogle-Weekley --- Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm index eb5d7eadd1..7c58300f14 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm @@ -491,7 +491,8 @@ sub get_staff_search_settings { } my $sss_size = $self->ctx->{get_org_setting}->( - $self->ctx->{orig_loc} || $self->ctx->{aou_tree}->()->id, + $self->ctx->{user}->ws_ou || $self->ctx->{orig_loc} || + $self->ctx->{aou_tree}->()->id, "opac.staff_saved_search.size", ); -- 2.11.0