Bug 20911: Use 'POST' to submit search history forms
authorNick Clemens <nick@bywatersolutions.com>
Mon, 11 Jun 2018 15:28:19 +0000 (15:28 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 15 Jun 2018 10:34:15 +0000 (10:34 +0000)
To test:
1 - Enable EnableOpacSearchHistory and EnableSearchHistory
2 - Do some searches
3 - View your search history in staff/opac
4 - Confirm you can delete single or multiple rows
5 - Confirm other page functionality has not changed

Signed-off-by: Ed Veal <eveal@mckinneytexas.org>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/search-history.tt
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-search-history.tt

index 43a9bfa..a69e7a2 100644 (file)
@@ -31,7 +31,7 @@
         <div id="biblio_tab">
           [% IF ( current_biblio_searches ) %]
             <h2>Current session</h2>
-            <form action="/cgi-bin/koha/catalogue/search-history.pl" method="get">
+            <form action="/cgi-bin/koha/catalogue/search-history.pl" method="post">
               <div class="selections-toolbar">
                 <a class="CheckAll" href="#"><i class="fa fa-check"></i> Select all visible rows</a>
                 <span class="sep">|</span>
@@ -68,7 +68,7 @@
 
           [% IF ( previous_biblio_searches ) %]
             <h2>Previous sessions</h2>
-            <form action="/cgi-bin/koha/catalogue/search-history.pl" method="get">
+            <form action="/cgi-bin/koha/catalogue/search-history.pl" method="post">
               <div class="selections-toolbar">
                 <a class="CheckAll" href="#"><i class="fa fa-check"></i> Select all visible rows</a>
                 <span class="sep">|</span>
         <div id="authority_tab">
           [% IF ( current_authority_searches ) %]
             <h2>Current session</h2>
-            <form action="/cgi-bin/koha/catalogue/search-history.pl" method="get">
+            <form action="/cgi-bin/koha/catalogue/search-history.pl" method="post">
               <div class="selections-toolbar">
                 <a class="CheckAll" href="#"><i class="fa fa-check"></i> Select all visible rows</a>
                 <span class="sep">|</span>
 
           [% IF ( previous_authority_searches ) %]
             <h2>Previous sessions</h2>
-            <form action="/cgi-bin/koha/catalogue/search-history.pl" method="get">
+            <form action="/cgi-bin/koha/catalogue/search-history.pl" method="post">
               <div class="selections-toolbar">
                 <a class="CheckAll" href="#"><i class="fa fa-check"></i> Select all visible rows</a>
                 <span class="sep">|</span>
index a2a774d..e146f76 100644 (file)
@@ -44,7 +44,7 @@
                             <div id="current_biblio">
                                 [% IF ( current_biblio_searches ) %]
                                     <h2>Current session</h2>
-                                    <form action="/cgi-bin/koha/opac-search-history.pl" method="get">
+                                    <form action="/cgi-bin/koha/opac-search-history.pl" method="post">
                                         <div class="selections-toolbar toolbar">
                                             <a class="CheckAll" href="#">Select all</a>
                                             <a class="CheckNone" href="#">Clear all</a>
@@ -83,7 +83,7 @@
                             <div id="previous_biblio">
                                 [% IF ( previous_biblio_searches ) %]
                                     <h2>Previous sessions</h2>
-                                    <form action="/cgi-bin/koha/opac-search-history.pl" method="get">
+                                    <form action="/cgi-bin/koha/opac-search-history.pl" method="post">
                                         <div class="selections-toolbar toolbar">
                                             <a class="CheckAll" href="#">Select all</a>
                                             <a class="CheckNone" href="#">Clear all</a>
                             <div id="authority_tab">
                                 [% IF ( current_authority_searches ) %]
                                     <h2>Current session</h2>
-                                    <form action="/cgi-bin/koha/opac-search-history.pl" method="get">
+                                    <form action="/cgi-bin/koha/opac-search-history.pl" method="post">
                                         <div class="selections-toolbar toolbar">
                                             <a class="CheckAll" href="#">Select all</a>
                                             <a class="CheckNone" href="#">Clear all</a>
 
                                 [% IF ( previous_authority_searches ) %]
                                     <h2>Previous sessions</h2>
-                                    <form action="/cgi-bin/koha/opac-search-history.pl" method="get">
+                                    <form action="/cgi-bin/koha/opac-search-history.pl" method="post">
                                         <div class="selections-toolbar toolbar">
                                             <a class="CheckAll" href="#">Select all</a>
                                             <a class="CheckNone" href="#">Clear all</a>