CRM-16523 towards fixing test issues on this
[civicrm-core.git] / api / v3 / Dashboard.php
index 88d0875d3718a8f93b38d3d735a6b2975e65eb34..c29b6604012a608f3ad0e7b1d2f791eb4e007ee4 100644 (file)
@@ -3,7 +3,7 @@
  +--------------------------------------------------------------------+
  | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014                                |
+ | Copyright CiviCRM LLC (c) 2004-2015                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -73,9 +73,9 @@ function _civicrm_api3_dashboard_create_spec(&$params) {
  */
 function civicrm_api3_dashboard_get($params) {
   $bao = new CRM_Core_BAO_Dashboard();
-  _civicrm_api3_dao_set_filter($bao, $params, TRUE, 'Dashboard');
+  _civicrm_api3_dao_set_filter($bao, $params, TRUE);
   $dashlets = _civicrm_api3_dao_to_array($bao, $params, TRUE, 'Dashboard');
-  return civicrm_api3_create_success($dashlets, $params, 'dashboard', 'get', $bao);
+  return civicrm_api3_create_success($dashlets, $params, 'Dashboard', 'get', $bao);
 }
 
 /**
@@ -88,7 +88,7 @@ function civicrm_api3_dashboard_get($params) {
  */
 function civicrm_api3_dashboard_delete($params) {
   if (CRM_Core_BAO_Dashboard::deleteDashlet($params['id'])) {
-    return civicrm_api3_create_success(1, $params, 'dashboard', 'delete');
+    return civicrm_api3_create_success(1, $params, 'Dashboard', 'delete');
   }
   else {
     return civicrm_api3_create_error('Could not delete dashlet');