From 8e8d8e7c944a37cd147d0f25a7220f6c21756966 Mon Sep 17 00:00:00 2001 From: Jim Bacon Date: Tue, 14 Sep 2021 17:32:14 +0100 Subject: [PATCH 1/2] Fixes #397 - cache_verification tables not updated --- modules/data_cleaner/models/verification_rule.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/data_cleaner/models/verification_rule.php b/modules/data_cleaner/models/verification_rule.php index de8562f21e..0a5bddd43b 100644 --- a/modules/data_cleaner/models/verification_rule.php +++ b/modules/data_cleaner/models/verification_rule.php @@ -411,8 +411,11 @@ public function updateCache() { $rule = trim(strtolower(preg_replace('/([A-Z])/', '_$1', $this->test_type)), '_'); require_once MODPATH . "data_cleaner_$rule/plugins/data_cleaner_$rule.php"; if (function_exists("data_cleaner_{$rule}_cache_sql")) { + // Delete old cached values. $this->db->query("delete from cache_verification_rules_$rule where verification_rule_id=$this->id"); - if ($this->deleted === 'f') { + // Only add back to cache if not deleting. + // Note, when importing new rules from file, deleted is null. + if ($this->deleted !== 't') { $sql = call_user_func("data_cleaner_{$rule}_cache_sql"); $sql = str_replace('#id#', $this->id, $sql); $this->db->query($sql); From 65df51d9f41f237e5a9380fe4529a3812f295075 Mon Sep 17 00:00:00 2001 From: Jim Bacon Date: Tue, 14 Sep 2021 17:39:24 +0100 Subject: [PATCH 2/2] Bump version --- application/config/version.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/config/version.php b/application/config/version.php index 2680f6c8ac..534aeb23c3 100644 --- a/application/config/version.php +++ b/application/config/version.php @@ -29,14 +29,14 @@ * * @var string */ -$config['version'] = '6.2.14'; +$config['version'] = '6.2.15'; /** * Version release date. * * @var string */ -$config['release_date'] = '2021-09-13'; +$config['release_date'] = '2021-09-14'; /** * Link to the code repository downloads page.