From 712c68adbc03a5ecff1420f910b62bdd43a69e84 Mon Sep 17 00:00:00 2001 From: Jitendra Purohit Date: Tue, 30 May 2017 17:06:55 +0530 Subject: [PATCH] CRM-19610 : Search preferences changes are not updated --- Civi/Core/SettingsBag.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Civi/Core/SettingsBag.php b/Civi/Core/SettingsBag.php index 9b415dcf43..8f623da29e 100644 --- a/Civi/Core/SettingsBag.php +++ b/Civi/Core/SettingsBag.php @@ -352,7 +352,7 @@ class SettingsBag { } $dao->find(TRUE); - if (isset($metadata['on_change'])) { + if (isset($metadata['on_change']) && $value != 0 && !($dao->value === NULL || unserialize($dao->value) == 0)) { foreach ($metadata['on_change'] as $callback) { call_user_func( \Civi\Core\Resolver::singleton()->get($callback), -- 2.25.1