From 0401f59aa2b44b7a121f9aa8daa47672ad2dcee0 Mon Sep 17 00:00:00 2001 From: Thibaud Guillot 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