Bug 18435 - Language entered in Materials Specified does not display when items are checked out and checked in
This problem stems from bug 17642, if items.materials is not linked to an authorized value the contents are being tossed out. We shuold display them instead To test: 1 - Ensure items.materials 952$3 is not mapped to an authorized value 2 - Add a value to an item 3 - Check the item out, note the materials does not display 4 - Check the item in, note the materials does not display 5 - Apply patch 6 - Check the item out, note the materials does display 7 - Check the item in, note the materials does display Followed test plan, message about material displays as expected whil checking out and in. Signed-off-by: Marc Véron <veron@veron.ch> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
c026d9f4e1
commit
330ecff1de
|
|
@ -383,7 +383,7 @@ if (@$barcodes) {
|
|||
# Get the item title for more information
|
||||
my $materials = $iteminfo->{'materials'};
|
||||
my $descriptions = Koha::AuthorisedValues->get_description_by_koha_field({ frameworkcode => $getmessageiteminfo->{frameworkcode}, kohafield => 'items.materials', authorised_value => $materials });
|
||||
$materials = $descriptions->{lib} // '';
|
||||
$materials = $descriptions->{lib} // $materials;
|
||||
$template_params->{additional_materials} = $materials;
|
||||
$template_params->{itemhomebranch} = $iteminfo->{'homebranch'};
|
||||
|
||||
|
|
|
|||
|
|
@ -282,7 +282,7 @@ if ($barcode) {
|
|||
|
||||
my $materials = $biblio->{'materials'};
|
||||
my $descriptions = Koha::AuthorisedValues->get_description_by_koha_field({frameworkcode => '', kohafield =>'items.materials', authorised_value => $materials });
|
||||
$materials = $descriptions->{lib} // '';
|
||||
$materials = $descriptions->{lib} // $materials;
|
||||
|
||||
$template->param(
|
||||
title => $biblio->{'title'},
|
||||
|
|
|
|||
Loading…
Reference in New Issue