]> git.koha-community.org Git - koha.git/commit
Bug 28175: (follow-up) Preselect correct category after search
authorOwen Leonard <oleonard@myacpl.org>
Tue, 22 Jun 2021 19:09:23 +0000 (19:09 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 12 Jul 2021 13:47:34 +0000 (15:47 +0200)
commit2f6877d6163dce3cbfbb4d418ee55ea31be6349b
treecf610bf0b31ccf9db926000c8febbc316beb5608
parente078875cbc1006fd8c26259449b9ffdad24872e1
Bug 28175: (follow-up) Preselect correct category after search

This patch modifies the script and template so that if the user submits
a search by category, that category will be preselected on the search
results page.

Also added is an empty "Choose" option so that a search category isn't
selected by default.

To test, apply the patch and view the uploads page.

 - In the category search form, a "Choose" option should be selected.
   Submitting the form without selecting a category should not work.
 - Search using one of your existing categories. On the search results
   page the category you selected should remain selected.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt
tools/upload.pl