Bug 33189: Make plugin upload look for .kpz files in file picker
authorDavid Cook <dcook@prosentient.com.au>
Fri, 10 Mar 2023 05:23:24 +0000 (05:23 +0000)
committerMatt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Fri, 10 Mar 2023 16:24:36 +0000 (16:24 +0000)
commitc4c77251a2c243c79284ad254b1fc54bebaedd85
tree2957c3cb44fdcbca4cfe720d8696408da889d128
parent33be1b11c864d29e5ae55d25aa515918ff4e089e
Bug 33189: Make plugin upload look for .kpz files in file picker

This change configures the file picker to look for *.kpz files instead
of *.* files, which makes it more convenient to locate .kpz files
for upload when uploading plugins.

Test plan:
0. Apply patch
1. Go to http://localhost:8081/cgi-bin/koha/plugins/plugins-upload.pl
2. Click on "Choose file"
3. Note that the file type in the box at the bottom right of the screen
defaults to "KPZ File (*.kpz)
4. If you navigate to a directory that contains .kpz files (like Downloads),
you'll now see directory folders and .kpz files.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit bb3fecd0461e91df9a907a85ea58bc5100ad3885)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-upload.tt