Update api call, group param is deprecated
authorEileen McNaughton <eileen@mcnaughty.com>
Wed, 30 Mar 2016 08:09:56 +0000 (21:09 +1300)
committerEileen <eileen@fuzion.co.nz>
Sat, 23 Apr 2016 03:51:10 +0000 (03:51 +0000)
CRM/Logging/Schema.php
api/v3/Setting.php

index b84f21640d45b90b7d3e881f18366b0aa12628d7..23ab7be37ca058865af4e36d15a5138451061afe 100644 (file)
@@ -868,7 +868,7 @@ COLS;
         $sqlStmt .= "NEW.$column, ";
         $deleteSQL .= "OLD.$column, ";
       }
-      if (civicrm_api3('Setting', 'getvalue', array('name' => 'logging_uniqueid_date', 'group' => 'core'))) {
+      if (civicrm_api3('Setting', 'getvalue', array('name' => 'logging_uniqueid_date'))) {
         $sqlStmt .= "@uniqueID, @civicrm_user_id, '{eventName}');";
         $deleteSQL .= "@uniqueID, @civicrm_user_id, '{eventName}');";
       }
index 1599aaa571542ad1574a095dfc9afb6e6d306a0d..e7cf7cb7b0c4ea5d8e4dde05e4d088214423c7bd 100644 (file)
@@ -354,7 +354,7 @@ function civicrm_api3_setting_getvalue($params) {
   //  return $config->$params['name'];
   //}
   return CRM_Core_BAO_Setting::getItem(
-    $params['group'],
+    NULL,
     CRM_Utils_Array::value('name', $params),
     CRM_Utils_Array::value('component_id', $params),
     CRM_Utils_Array::value('default_value', $params),