https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40968

--- Comment #5 from Tomás Cohen Arazi (tcohen) <[email protected]> ---
Created attachment 198905
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=198905&action=edit
Bug 40968: Pass weight_search to template in advsearch path

The 'Edit this search' link correctly passes weight_search and
whole_record parameters in the URL (thanks to bug 40966), but the
advanced search form doesn't pre-fill the 'Apply field weights'
checkbox because weight_search is not passed to the template in the
advsearch exit path.

The template logic checks:
  [% IF weight_search_submitted && !weight_search %]
to uncheck the box, but weight_search was never set, so the checkbox
always appeared unchecked when editing a search.

This patch passes weight_search from the CGI params to the template
in both catalogue/search.pl and opac/opac-search.pl.

Signed-off-by: Tomas Cohen Arazi <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to