Tpac: for staff saved searches, get org unit setting with right context user/senator/tpac-staff-saved-search-ws-ou
authorLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Fri, 28 Oct 2011 12:39:30 +0000 (08:39 -0400)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Fri, 28 Oct 2011 12:39:30 +0000 (08:39 -0400)
Use the user's ws_ou, since this is a staff-client feature.

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm

index eb5d7ea..7c58300 100644 (file)
@@ -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",
     );