Skip to content

Commit

Permalink
! Search didn't set search_type to board if specific boards were set.…
Browse files Browse the repository at this point in the history
… (Based on fix by @cleptoman, although totally not tested, as usual with me when it's past midnight.) (Search.template.php)
  • Loading branch information
Nao committed Oct 21, 2014
1 parent 3f28ad0 commit 4d3680a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/html/Search.template.php
Expand Up @@ -91,8 +91,8 @@ function template_main()
echo '
<br>
<fieldset class="flow_hidden">
<label><input type="radio" name="all_boards" value="1" onclick="$(\'#searchBoardsExpand\').hide(300);"', $context['boards_check_all'] ? ' checked' : '', '> ', $txt['all_boards'], '</label>
<br><label><input type="radio" name="all_boards" value="0" onclick="$(\'#searchBoardsExpand\').show(300);"', $context['boards_check_all'] ? '' : ' checked', '> ', $txt['choose_board'], '</label>
<label><input type="radio" name="all_boards" value="1" onclick="$(\'#searchBoardsExpand\').hide(300); $(\'#search_where\').val(\'everywhere\');"', $context['boards_check_all'] ? ' checked' : '', '> ', $txt['all_boards'], '</label>
<br><label><input type="radio" name="all_boards" value="0" onclick="$(\'#searchBoardsExpand\').show(300); $(\'#search_where\').val(\'board\');"', $context['boards_check_all'] ? '' : ' checked', '> ', $txt['choose_board'], '</label>
<div id="searchBoardsExpand"', $context['boards_check_all'] ? ' class="hide"' : '', '>
<ul class="ignoreboards floatleft">';

Expand Down Expand Up @@ -146,6 +146,7 @@ function template_main()
</div>
<hr class="clear">
<div class="padding clearfix">
<input type="hidden" id="search_where" name="search_type" value="">
<input type="submit" value="', $txt['search'], '" class="submit floatright">
</div>
</fieldset>';
Expand Down

0 comments on commit 4d3680a

Please sign in to comment.