Bug 21175 - Handle locations and collections with no matching authorised value in patron checkouts table
Summary: Handle locations and collections with no matching authorised value in patron ...
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Circulation (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on: 19719
Blocks:
  Show dependency treegraph
 
Reported: 2018-08-08 10:49 UTC by Katrin Fischer
Modified: 2018-08-08 10:50 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Katrin Fischer 2018-08-08 10:49:45 UTC
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.