Bugzilla – Attachment 4483 Details for
Bug 6453
The "Compare barcodes list to results" functionnality of inventory.pl can't find barcodes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Corrects the barcode comparisons in inventory.pl
SIGNED-OFF-Corrects-the-barcode-comparisons-in-inv.patch (text/plain), 1.69 KB, created by
Katrin Fischer
on 2011-06-15 15:33:29 UTC
(
hide
)
Description:
[SIGNED-OFF] Corrects the barcode comparisons in inventory.pl
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2011-06-15 15:33:29 UTC
Size:
1.69 KB
patch
obsolete
>From 06469e86d53d666b0e72533c665c362fb0ad1ade Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Fr=C3=A9d=C3=A9rick=20Capovilla?= <frederick.capovilla@sys-tech.net> >Date: Fri, 3 Jun 2011 15:24:32 -0400 >Subject: [PATCH] [SIGNED-OFF] Corrects the barcode comparisons in inventory.pl >Content-Type: text/plain; charset="utf-8" > >Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> > >http://bugs.koha-community.org/show_bug.cgi?id=6453 >--- > tools/inventory.pl | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/tools/inventory.pl b/tools/inventory.pl >index 7ca8baf..5e7b198 100755 >--- a/tools/inventory.pl >+++ b/tools/inventory.pl >@@ -196,7 +196,7 @@ if ( ! ($uploadbarcodes && length($uploadbarcodes)>0 ) || ( $input->param('compa > if ( defined $input->param('compareinv2barcd') && ( ( $input->param('compareinv2barcd') eq 'on' ) && ( scalar @brcditems != scalar @$res ) ) && length($uploadbarcodes) > 0 ){ > if ( scalar @brcditems > scalar @$res ){ > for my $brcditem (@brcditems) { >- if (! grep(/$brcditem->{barcode}/, @$res) ){ >+ if (! grep( $_->{barcode} =~ /$brcditem->{barcode}/ , @$res) ){ > $brcditem->{notfoundkoha} = 1; > push @$res, $brcditem; > } >@@ -204,7 +204,7 @@ if ( ! ($uploadbarcodes && length($uploadbarcodes)>0 ) || ( $input->param('compa > } else { > my @notfound; > for my $item (@$res) { >- if ( ! grep(/$item->{barcode}/, @brcditems) ){ >+ if ( ! grep( $_->{barcode} =~ /$item->{barcode}/ , @brcditems) ){ > $item->{notfoundbarcode} = 1; > push @notfound, $item; > } >-- >1.7.4.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 6453
:
4354
| 4483