Skip to content

Commit

Permalink
Merge pull request #10491 from seamuslee001/CRM-19610
Browse files Browse the repository at this point in the history
CRM-19610 : Search preferences changes are not updated
  • Loading branch information
eileenmcnaughton authored Jun 12, 2017
2 parents 2facc08 + c618153 commit 91e4eaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Civi/Core/SettingsBag.php
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ protected function setDb($name, $value) {
}
$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),
Expand Down

0 comments on commit 91e4eaf

Please sign in to comment.