From 3fe6c84b5a3c7b22a91bae4b7189f0432e4c430f Mon Sep 17 00:00:00 2001 From: Jane Sandberg Date: Thu, 23 Jul 2020 22:02:35 -0700 Subject: [PATCH] LP1849212: Course browse and search can be called without locg param in URL Signed-off-by: Jane Sandberg Signed-off-by: Michele Morgan Signed-off-by: Galen Charlton --- .../src/templates/opac/parts/course_search/qtype_selector.tt2 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/templates/opac/parts/course_search/qtype_selector.tt2 b/Open-ILS/src/templates/opac/parts/course_search/qtype_selector.tt2 index 279b1c84ea..858d271b7f 100644 --- a/Open-ILS/src/templates/opac/parts/course_search/qtype_selector.tt2 +++ b/Open-ILS/src/templates/opac/parts/course_search/qtype_selector.tt2 @@ -3,8 +3,13 @@ {value => "course_number", label => l("Course Number"), plural_label => l('Course Numbers'), browse => 1} ]; -IF ctx.get_org_setting( - CGI.param('locg'), 'circ.course_materials_browse_by_instructor'); +IF CGI.param('locg'); + locg = CGI.param('locg'); +ELSE; + locg = 1; +END; + +IF ctx.get_org_setting(locg, 'circ.course_materials_browse_by_instructor'); query_types.push({ value => "instructor", label => l("Instructor"), -- 2.11.0