From: Dan Scott Date: Wed, 28 Dec 2011 02:17:02 +0000 (-0500) Subject: TPAC: Set search_ou context in common loader X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=611b4b1ab4b586a815bb4035bf141438c5939b46;p=evergreen%2Fmasslnc.git TPAC: Set search_ou context in common loader By setting the search_ou context in load_common() after checking for a valid user session, we can catch the remaining pages in TPAC in which the default search library was not being set properly. Signed-off-by: Dan Scott Signed-off-by: Jason Stephenson --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm index 59a2cb1fba..5091c5022c 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm @@ -243,6 +243,7 @@ sub load_common { return $self->load_logout($self->apache->unparsed_uri); } } + $ctx->{search_ou} = $self->_get_search_lib(); $self->staff_saved_searches_set_expansion_state if $ctx->{is_staff};