]> git.koha-community.org Git - koha.git/commit
Bug 20098: Inventory tool: CVS export: fix itemlost column
authorVictor Grousset <victor.grousset@biblibre.com>
Mon, 29 Jan 2018 15:09:24 +0000 (16:09 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 12 Mar 2018 15:16:54 +0000 (16:16 +0100)
commit5eb8bcb4eafa9fb717f24a34c245025f81d1a85b
tree5be1af2e609f921a4461d226a010bd103335c320
parenteb005e767e14e3f81e2d052699c4f236d4b0461f
Bug 20098: Inventory tool: CVS export: fix itemlost column

It was mapped with "lost" instead of "itemlost".

== Test plan ==
1. Have a lost item
2. Go to staff:/cgi-bin/koha/tools/inventory.pl
3. Tick "Optional filters" → "items.itemlost" →
      "name of Authorized values for the lost state"
4. Tick "Export to CSV file"
5. Submit
6. Open the CSV
7. Check that the lost item is in the list
8. You should observe that the "Lost status" column is empty for all items
     This is the problem
9. Apply this patch
10. Click submit to re-export the CSV
11. Open the CSV
12. Check that the lost item is in the list
13. You should observe that the "Lost status" column now filled with the
      expected values.
14. Smile because it works! :D

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Maksim Sen <maksim@inlibro.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 756c95477d2a16843abbd3858d776e37e28b4e90)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
tools/inventory.pl