[Koha-bugs] [Bug 21175] New: Handle locations and collections with no matching authorised value in patron checkouts table

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Aug 8 12:49:45 CEST 2018


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

            Bug ID: 21175
           Summary: Handle locations and collections with no matching
                    authorised value in patron checkouts table
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Circulation
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: katrin.fischer at bsz-bw.de
        QA Contact: testopia at bugs.koha-community.org
                CC: gmcharlt at gmail.com, kyle.m.hall at gmail.com

Currently the code for displaying locations and collection in the patron
checkouts table doesn't handle the case when there is no authorised value in
LOC or CCODE. 

> +    my $collection;
> +    if ( $c->{collection} ) {
> +        my $av = Koha::AuthorisedValues->search({ category => 'CCODE', authorised_value => $c->{collection} });
> +        $collection = $av->count ? $av->next->lib : '';

We could make this a little better by displaying the stored value when no match
is found in the authorised value list.

-- 
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