From: Bill Erickson Date: Mon, 25 Mar 2013 19:19:14 +0000 (-0400) Subject: tpac : honor page locale in record detail copy grid X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d198705a3fe393a094cc626f428acd8ec096657f;p=contrib%2FConifer.git tpac : honor page locale in record detail copy grid The query used to load the record detail copy grid now uses the same locale value set as the default for all cstore-editor calls. This solves the issue where copy location names, statuses, etc. are not properly translated. Signed-off-by: Bill Erickson Signed-off-by: Pasi Kallinen Signed-off-by: Mike Rylander --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm index 3896ffb7e5..6e89be3ecd 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm @@ -61,6 +61,7 @@ sub load_record { # run copy retrieval in parallel to bib retrieval # XXX unapi my $cstore = OpenSRF::AppSession->create('open-ils.cstore'); + $cstore->session_locale($OpenILS::Utils::CStoreEditor::default_locale); my $copy_rec = $cstore->request( 'open-ils.cstore.json_query.atomic', $self->mk_copy_query($rec_id, $org, $copy_depth, $copy_limit, $copy_offset, $pref_ou)