]> git.koha-community.org Git - koha.git/commit
Bug 16589 - Quote of the day: Fix upload with csv files associated to LibreOffice...
authorMarc Véron <veron@veron.ch>
Sat, 28 May 2016 07:44:40 +0000 (09:44 +0200)
committerJulian Maurice <julian.maurice@biblibre.com>
Thu, 16 Jun 2016 09:20:49 +0000 (11:20 +0200)
commit17ed90f215656dd201fdf434ecd8fe7ea888e97a
treec9cc8c163da31817aa64354c77ab84362206f487
parenta97e139921c6dbd264b194cdc422dbe362b08231
Bug 16589 - Quote of the day: Fix upload with csv files associated to LibreOffice Calc

To reproduce:
- Install LibreOffice and make sure that csv files are associated to Calc
  (Note: tested with Firefox 46.0.1 on Windows 8)
- Go to Home > Tools > Quote editor > Quote uploader
- Try to upload a valid CSV (e.g. Example from Bug 15684)
Result: File can not be uploaded
        (Incorrect filetype: application/vnd.sun.xml.calc)
To test:
- Apply patch
- Try to upload again
Expected result: Quotes are imported.

Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
  Can't reproduce on a Mac but get it fails on a Windows Box: fixed with this
  patch.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Can't recreate on debian but the fix looks safe.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 8631ebaf9f634976b076958707af355baf78cc2f)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
(cherry picked from commit 34f8ab6f4040aeaee2cf674a550c052bc3c1a9b8)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes-upload.tt