From: Dan Scott Date: Mon, 13 Aug 2012 23:24:59 +0000 (-0400) Subject: Fix logic for show details by default X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a4b121dd3fc87b202b66694292ede0b4102cd90c;p=contrib%2FConifer.git 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 --- 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 %]