X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FDashboard.php;h=01c1e43cd11b19d2262a7ad8b13f61a25d0ea41c;hb=3ddaaaf3d9231f90139cf21975667b211cc5bc9d;hp=cf5aae7b2f27fca5444dbd97288c796cc0029504;hpb=f044c460fabc30533dbbae6584b269323a5102fd;p=civicrm-core.git diff --git a/api/v3/Dashboard.php b/api/v3/Dashboard.php index cf5aae7b2f..01c1e43cd1 100644 --- a/api/v3/Dashboard.php +++ b/api/v3/Dashboard.php @@ -73,11 +73,7 @@ function _civicrm_api3_dashboard_create_spec(&$params) { * @return array */ function civicrm_api3_dashboard_get($params) { - // NEVER COPY THIS. No idea why a newish api would not use basic_get. - $bao = new CRM_Core_BAO_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_basic_get(_civicrm_api3_get_BAO(__FUNCTION__), $params); } /**