[Koha-bugs] [Bug 20067] Authorised values for ORDER_CANCELLATION_REASON are displayed on notice (catalogue/detail.pl)

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Feb 22 23:28:24 CET 2018


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20067

--- Comment #10 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
I think the error is in detail.pl around here:

$mss = Koha::MarcSubfieldStructures->search({ frameworkcode => $fw, kohafield
=> 'items.materials', authorised_value => { not => undef } });
my %materials_map;
use Data::Dumper; warn Dumper $mss->count;
if ($mss->count) {
    my $materials_authvals = GetAuthorisedValues($mss->next->authorised_value);
    if ($materials_authvals) {
        foreach my $value (@$materials_authvals) {
            $materials_map{$value->{authorised_value}} = $value->{lib};
        }
    }
}

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list