From: Lebbeous Fogle-Weekley Date: Fri, 28 Oct 2011 12:39:30 +0000 (-0400) Subject: Tpac: for staff saved searches, get org unit setting with right context X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Fsenator%2Ftpac-staff-saved-search-ws-ou;p=working%2FEvergreen.git 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 --- 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", );