Commit b391b97b authored by totten's avatar totten

CRM_Core_BAO_Setting::dao() - Don't filter on group, but do save a blank group.

parent d9d7e7dd
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment