Bugzilla – Attachment 71075 Details for
Bug 20098
Inventory: CSV export: itemlost column is always empty
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20098: Inventory tool: CVS export: fix itemlost column
Bug-20098-Inventory-tool-CVS-export-fix-itemlost-c.patch (text/plain), 1.77 KB, created by
Mark Tompsett
on 2018-01-30 20:30:28 UTC
(
hide
)
Description:
Bug 20098: Inventory tool: CVS export: fix itemlost column
Filename:
MIME Type:
Creator:
Mark Tompsett
Created:
2018-01-30 20:30:28 UTC
Size:
1.77 KB
patch
obsolete
>From 3cc198c75d2a2e71b736ce18009b3ab18553a7cf Mon Sep 17 00:00:00 2001 >From: Victor Grousset <victor.grousset@biblibre.com> >Date: Mon, 29 Jan 2018 16:09:24 +0100 >Subject: [PATCH] Bug 20098: Inventory tool: CVS export: fix itemlost column >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >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> >--- > tools/inventory.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/tools/inventory.pl b/tools/inventory.pl >index dd67e4d..c671488 100755 >--- a/tools/inventory.pl >+++ b/tools/inventory.pl >@@ -349,7 +349,7 @@ if (defined $input->param('CSVexport') && $input->param('CSVexport') eq 'on'){ > $csv->combine(@translated_keys); > print $csv->string, "\n"; > >- my @keys = qw/ title author barcode itemnumber homebranch location itemcallnumber notforloan lost damaged withdrawn stocknumber /; >+ my @keys = qw/ title author barcode itemnumber homebranch location itemcallnumber notforloan itemlost damaged withdrawn stocknumber /; > for my $item ( @$loop ) { > my @line; > for my $key (@keys) { >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 20098
:
71023
|
71075
|
71166
|
71173