Bug 27045: Fix items lost report export if delimiter is tab
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 20 Nov 2020 14:33:02 +0000 (15:33 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 20 Jul 2022 14:50:40 +0000 (11:50 -0300)
commit983965ee4790fd7841af87fcfdb8395ccea9e813
treef018ae596fdf1b87702a2f35ac117814ca9e8d4b
parentde6ca8aa3d291edc054028fb4f16bc6540ab47fb
Bug 27045: Fix items lost report export if delimiter is tab

When choosing tabulation as the delimiter for a CSV profile
for the lost item report, the tabs appear in the file as \t
instead of as proper tabs.

title\tauthor\tstocknumber\tcallnumber
"E Street shuffle :"\"Heylin, Clinton."\\

To test:
* Upate the existing sample lost item CSV profile to use tabs as
  separator
* Make sure you have some lost items in your database or create some
* Go to Reports > Lost items
* Run the report
* Check all or some of the checkboxes in the result list
* Export using the link on top and the CSV profile
* Verify the tabs are not exported correctly
* Apply patch
* Verify tabs now are proper tabs instead of \t

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
reports/itemslost.pl