Bugzilla – Attachment 185707 Details for
Bug 40691
CCODE label not includes in case of 'wrong place' problem (and maybe others cases) into inventory.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40691: Add ccode label on inventory table
Bug-40691-Add-ccode-label-on-inventory-table.patch (text/plain), 1.32 KB, created by
Thibaud Guillot (thibaud_g)
on 2025-08-22 09:30:08 UTC
(
hide
)
Description:
Bug 40691: Add ccode label on inventory table
Filename:
MIME Type:
Creator:
Thibaud Guillot (thibaud_g)
Created:
2025-08-22 09:30:08 UTC
Size:
1.32 KB
patch
obsolete
>From 0401f59aa2b44b7a121f9aa8daa47672ad2dcee0 Mon Sep 17 00:00:00 2001 >From: Thibaud Guillot <thibaud.guillot@biblibre.com> >Date: Fri, 22 Aug 2025 11:26:24 +0200 >Subject: [PATCH] Bug 40691: Add ccode label on inventory table > >Test plan: > >1) Perform an item inventory, be sure to have some items with problems > :) like 'wrong place' >2) On table if item has 'wrong place' problem (maybe others cases ?) if > it's linked to collection code just the AV code appears not the label >3) Apply this patch >4) Refresh page, normally that's okay now > >Sponsored-by: BibLibre >--- > tools/inventory.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/tools/inventory.pl b/tools/inventory.pl >index 8e735d40e4..86ccfb340d 100755 >--- a/tools/inventory.pl >+++ b/tools/inventory.pl >@@ -504,7 +504,7 @@ sub additemtoresults { > my $fc = $item->{'frameworkcode'} || ''; > > # Populating with authorised values description >- foreach my $field (qw/ location notforloan itemlost damaged withdrawn /) { >+ foreach my $field (qw/ location notforloan itemlost damaged withdrawn ccode /) { > my $av = Koha::AuthorisedValues->get_description_by_koha_field( > { frameworkcode => $fc, kohafield => "items.$field", authorised_value => $item->{$field} } ); > if ( $av and defined $item->{$field} and defined $av->{lib} ) { >-- >2.39.5
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 40691
:
185707
|
185726