[Koha-patches] [PATCH] bug_5911: removed duplicate _flush_preferences(), and replaced with clear_syspref_cache()
Srdjan
srdjan at catalyst.net.nz
Tue Jul 10 05:38:45 CEST 2012
---
C4/Context.pm | 3 ---
t/db_dependent/HoldsQueue.t | 2 +-
2 files changed, 1 insertion(+), 4 deletions(-)
diff --git a/C4/Context.pm b/C4/Context.pm
index 251299d..9ce6c74 100644
--- a/C4/Context.pm
+++ b/C4/Context.pm
@@ -523,9 +523,6 @@ with this method.
# flushing the caching mechanism.
my %sysprefs;
-sub _flush_preferences {
- %sysprefs = ();
-}
sub preference {
my $self = shift;
diff --git a/t/db_dependent/HoldsQueue.t b/t/db_dependent/HoldsQueue.t
index 7e882db..b130bac 100755
--- a/t/db_dependent/HoldsQueue.t
+++ b/t/db_dependent/HoldsQueue.t
@@ -152,7 +152,7 @@ sub test_queue {
$test_name = "$test_name (".($use_cost_matrix ? "" : "don't")." use cost matrix)";
$use_cost_matrix_sth->execute($use_cost_matrix);
- C4::Context->_flush_preferences();
+ C4::Context->clear_syspref_cache();
C4::HoldsQueue::CreateQueue();
my $results = $dbh->selectall_arrayref($test_sth, { Slice => {} }); # should be only one
--
1.7.9.5
More information about the Koha-patches
mailing list