From b391b97b1b90416c3233cd0c37d7718c22caca75 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Thu, 27 Aug 2015 16:01:08 -0700 Subject: [PATCH] CRM_Core_BAO_Setting::dao() - Don't filter on group, but do save a blank group. --- CRM/Core/BAO/Setting.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CRM/Core/BAO/Setting.php b/CRM/Core/BAO/Setting.php index 72a4aaaba8..4f0b8f7838 100644 --- a/CRM/Core/BAO/Setting.php +++ b/CRM/Core/BAO/Setting.php @@ -176,7 +176,9 @@ class CRM_Core_BAO_Setting extends CRM_Core_DAO_Setting { } $dao = new CRM_Core_DAO_Setting(); - $dao->group_name = $group; + if (!empty($group)) { + $dao->group_name = $group; + } $dao->name = $name; $dao->component_id = $componentID; if (empty($domainID)) { @@ -370,6 +372,7 @@ class CRM_Core_BAO_Setting extends CRM_Core_DAO_Setting { $dao = self::dao($group, $name, $componentID, $contactID, $domainID); $dao->find(TRUE); + $dao->group_name = $group; if (isset($metadata['on_change'])) { foreach ($metadata['on_change'] as $callback) { -- 2.25.1