Bug 16398: Keep the expanded view after clearing the search form
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 29 Apr 2016 15:52:26 +0000 (16:52 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Tue, 3 May 2016 15:40:40 +0000 (15:40 +0000)
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: Marc VĂ©ron <veron@veron.ch>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt

index eec5145..7df062f 100644 (file)
@@ -49,7 +49,7 @@
         </div>
         [% END %]
         <div class="btn-group">
-            <a href="/cgi-bin/koha/catalogue/search.pl?do=Clear" class="btn-small"><i class="fa fa-times"></i> Clear fields</a>
+            <a href="/cgi-bin/koha/catalogue/search.pl?do=Clear&expanded_options=[% expanded_options %]" class="btn-small"><i class="fa fa-times"></i> Clear fields</a>
         </div>
     </fieldset>
 </div>