From d198705a3fe393a094cc626f428acd8ec096657f Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Mon, 25 Mar 2013 15:19:14 -0400 Subject: [PATCH] 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 --- Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm | 1 + 1 file changed, 1 insertion(+) 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) -- 2.43.2