Permalink
Browse files

[delivers #15591737] Fix improper use of cache handles

C4::Koha::GetAuthorisedValue had been improperly refactored
to use the CHI cache object handle rather than the computed
cache contents. This of course resulted in all calls to
GetAuthorisedValue to return undef.
  • Loading branch information...
1 parent 92d3d55 commit 2fa1f8757f6116c8bc763d72c141e2665854858b @ctfliblime ctfliblime committed Jul 21, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 C4/Koha.pm
View
@@ -873,8 +873,8 @@ sub GetAuthorisedValue {
my $thawed_cache = C4::Context->getcache(__PACKAGE__,
{driver => 'RawMemory',
datastore => C4::Context->cachehash});
- $thawed_cache->compute('thawed_authvals', '15s', \&_seed_thawed_authvals_cache);
- return clone($thawed_cache->{$category}{$authorised_value});
+ my $authvals = $thawed_cache->compute('thawed_authvals', '15s', \&_seed_thawed_authvals_cache);
+ return clone($authvals->{$category}{$authorised_value});
}
=head2 GetAuthorisedValues

0 comments on commit 2fa1f87

Please sign in to comment.