Bugzilla – Attachment 185874 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.47 KB, created by
Marcel de Rooy
on 2025-08-29 07:08:41 UTC
(
hide
)
Description:
Bug 40691: Add ccode label on inventory table
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2025-08-29 07:08:41 UTC
Size:
1.47 KB
patch
obsolete
>From 55f92b2fdc4af4e6c0f61053e100754bd9589638 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 >Content-Type: text/plain; charset=utf-8 > >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 >Signed-off-by: Owen Leonard <oleonard@myacpl.org> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > 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
| 185874