Bugzilla – Attachment 175451 Details for
Bug 38452
Inventory tool barcodes should not be case sensitive
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38452: Use lc() for case insensitivity
Bug-38452-Use-lc-for-case-insensitivity.patch (text/plain), 898 bytes, created by
Lucas Gass (lukeg)
on 2024-12-13 15:53:10 UTC
(
hide
)
Description:
Bug 38452: Use lc() for case insensitivity
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2024-12-13 15:53:10 UTC
Size:
898 bytes
patch
obsolete
>From 69fce5574e217a027e31678fdbd21c00ea3ae6cc Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Fri, 13 Dec 2024 15:52:34 +0000 >Subject: [PATCH] Bug 38452: Use lc() for case insensitivity > >--- > tools/inventory.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/tools/inventory.pl b/tools/inventory.pl >index 1c94183596..c2efdb7b01 100755 >--- a/tools/inventory.pl >+++ b/tools/inventory.pl >@@ -218,7 +218,7 @@ if ( $op eq 'cud-inventory' > my @items = Koha::Items->search( { barcode => { -in => \@barcodes } } )->as_list; > my %items = map { $_->barcode => $_ } @items; > foreach my $barcode (@barcodes) { >- my $item = $items{ $barcode }; >+ my $item = $items{ lc($barcode) }; > if ( $item ) { > if ( $item->withdrawn ) { > push @errorloop, { 'barcode' => $barcode, 'ERR_WTHDRAWN' => 1 }; >-- >2.39.2
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 38452
:
174638
|
175031
|
175451
|
175452
|
175455
|
175477