From a4b121dd3fc87b202b66694292ede0b4102cd90c Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Mon, 13 Aug 2012 19:24:59 -0400 Subject: [PATCH] Fix logic for show details by default If the CGI param was set, then the hidden input field was not created - meaning that the next search would fail to show the details. Switching the logic around sorts that out nicely. Signed-off-by: Dan Scott --- Open-ILS/src/templates/opac/parts/searchbar.tt2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/templates/opac/parts/searchbar.tt2 b/Open-ILS/src/templates/opac/parts/searchbar.tt2 index 969c47b275..702043d38b 100644 --- a/Open-ILS/src/templates/opac/parts/searchbar.tt2 +++ b/Open-ILS/src/templates/opac/parts/searchbar.tt2 @@ -31,7 +31,7 @@ l(' in '); INCLUDE build_org_selector show_loc_groups=1 %] - [%- IF (show_more_details.default == 'true' OR show_more_details.default == 'hide') AND !CGI.param('detail_record_view') %] + [%- IF show_more_details.default == 'hide' OR (show_more_details.default == 'true' AND !CGI.param('detail_record_view')) %] [%- END %]