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: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected], [email protected]

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.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to