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@lists.koha-community.org Reporter: katrin.fischer@bsz-bw.de QA Contact: testopia@bugs.koha-community.org CC: gmcharlt@gmail.com, kyle.m.hall@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.