Bug 16398: Keep the expanded view after clearing the search form

On the advanced search form, the "Clear fields" button should pass expanded_options
param to preserve the view we use.

Test plan:
- Click on more options
- Fill some fields
- Click on "Clear fields"
=> Without this patch you get the "fewer options" view
=> With this patch, you will keep the "more options" view

Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
This commit is contained in:
Jonathan Druart 2016-04-29 16:52:26 +01:00 committed by Julian Maurice
parent 217372f9fc
commit e78caf0a71
1 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@
[% ELSE %]
<a href="/cgi-bin/koha/catalogue/search.pl?expanded_options=1">[More options]</a>
[% END %]
<a href="/cgi-bin/koha/catalogue/search.pl?do=Clear">[New search]</a>
<a href="/cgi-bin/koha/catalogue/search.pl?do=Clear&expanded_options=[% expanded_options %]">[New search]</a>
</fieldset>
<!-- /SEARCH BUTTONS -->
</div>
@ -277,7 +277,7 @@
[% ELSE %]
<a href="/cgi-bin/koha/catalogue/search.pl?expanded_options=1">[More options]</a>
[% END %]
<a href="/cgi-bin/koha/catalogue/search.pl?do=Clear">[New search]</a>
<a href="/cgi-bin/koha/catalogue/search.pl?do=Clear&expanded_options=[% expanded_options %]">[New search]</a>
</fieldset>
<!-- /SEARCH BUTTONS -->
</div>