Bug 20067: Fix false display of authorised value for materials on staff detail page
Koha didn't check for a linked authorised value category for Koha didn't check for a linked authorised value category for items.materials correctly which led to displaying false information on the detail page. To test: - before applying the patch: - make sure sample data and configuration is loaded - edit any item - write 2 in the $3 materials specificed - check the details page normal view - it will display 'restocking' - apply patch - check display, it should now show "2" - link 952$3 (MARC21) to ORDER_CANCELLATION_REASON - check display again, it should now show 'restocking' Signed-off-by: Jesse Maseto <jesse@bywatersolutions.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
f3dfd5226d
commit
1428615dad
1 changed files with 1 additions and 1 deletions
|
@ -216,7 +216,7 @@ if ( $mss->count ) {
|
|||
$template->param( itemwithdrawnloop => GetAuthorisedValues( $mss->next->authorised_value) );
|
||||
}
|
||||
|
||||
$mss = Koha::MarcSubfieldStructures->search({ frameworkcode => $fw, kohafield => 'items.materials', authorised_value => { not => undef } });
|
||||
$mss = Koha::MarcSubfieldStructures->search({ frameworkcode => $fw, kohafield => 'items.materials', authorised_value => [ -and => {'!=' => undef }, {'!=' => ''}] });
|
||||
my %materials_map;
|
||||
if ($mss->count) {
|
||||
my $materials_authvals = GetAuthorisedValues($mss->next->authorised_value);
|
||||
|
|
Loading…
Reference in a new issue