View | Details | Raw Unified | Return to bug 40277
Collapse All | Expand All

(-)a/C4/Koha.pm (-2 / +1 lines)
Lines 513-519 sub GetAuthorisedValues { Link Here
513
    my $opac     = shift ? 1 : 0;    # normalise to be safe
513
    my $opac     = shift ? 1 : 0;    # normalise to be safe
514
514
515
    # Is this cached already?
515
    # Is this cached already?
516
    my $branch_limit = C4::Context->userenv ? C4::Context->userenv->{"branch"} : "";
516
    my $branch_limit = C4::Context::mybranch();
517
    my $cache_key    = "AuthorisedValues-$category-$opac-$branch_limit";
517
    my $cache_key    = "AuthorisedValues-$category-$opac-$branch_limit";
518
    my $cache        = Koha::Caches->get_instance();
518
    my $cache        = Koha::Caches->get_instance();
519
    my $result       = $cache->get_from_cache($cache_key);
519
    my $result       = $cache->get_from_cache($cache_key);
520
- 

Return to bug 40277