Bugzilla – Attachment 38485 Details for
Bug 14061
Inventory fails to map withdrawn authorized values
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14061: Fix broken mapping for not withdrawn items.
Bug-14061-Fix-broken-mapping-for-not-withdrawn-ite.patch (text/plain), 1.21 KB, created by
Mark Tompsett
on 2015-04-24 14:13:39 UTC
(
hide
)
Description:
Bug 14061: Fix broken mapping for not withdrawn items.
Filename:
MIME Type:
Creator:
Mark Tompsett
Created:
2015-04-24 14:13:39 UTC
Size:
1.21 KB
patch
obsolete
>From bf775a20ca5cae7a77c3ad8e59ac2e366b80e2e9 Mon Sep 17 00:00:00 2001 >From: Mark Tompsett <mtompset@hotmail.com> >Date: Fri, 24 Apr 2015 10:10:22 -0400 >Subject: [PATCH] Bug 14061: Fix broken mapping for not withdrawn items. > >TEST PLAN >--------- >1) Run inventory on a filtered set such that the > selected barcode is not withdrawn. > -- the Withdrawn column displays '0'. >2) Apply patch >3) Rerun > -- the Withdrawn column displays '' (as expected) >4) run koha qa test tools >--- > tools/inventory.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/tools/inventory.pl b/tools/inventory.pl >index b8cc31d..91e1c72 100755 >--- a/tools/inventory.pl >+++ b/tools/inventory.pl >@@ -272,7 +272,7 @@ foreach my $item ( @scanned_items ) { > # If the koha field is mapped to a marc field > my $fc = $item->{'frameworkcode'} || ''; > my ($f, $sf) = GetMarcFromKohaField("items.$field", $fc); >- if ($f and $sf) { >+ if (defined $f and defined $sf) { > # We replace the code with it's description > my $authvals = C4::Koha::GetKohaAuthorisedValuesFromField($f, $sf, $fc); > if ($authvals and defined $item->{$field} and defined $authvals->{$item->{$field}}) { >-- >1.9.1
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 14061
:
38485
|
38486
|
38487
|
38488
|
38489
|
38490
|
38491
|
38493
|
38505
|
38735