Merge pull request #24047 from kurund/export-fixes
[civicrm-core.git] / CRM / Member / Page / DashBoard.php
index 353ceeb75a54b081a500eecef21cb486c908a4e4..8a931b38c9c9f60b21aa8d8c8bb8bb940ac464a8 100644 (file)
@@ -86,51 +86,61 @@ class CRM_Member_Page_DashBoard extends CRM_Core_Page {
       $membershipSummary[$key]['premonth']['new'] = array(
         'count' => CRM_Member_BAO_Membership::getMembershipJoins($key, $preMonth, $preMonthEnd),
         'name' => $value,
+        'url' => FALSE,
       );
 
       $membershipSummary[$key]['premonth']['renew'] = array(
         'count' => CRM_Member_BAO_Membership::getMembershipRenewals($key, $preMonth, $preMonthEnd),
         'name' => $value,
+        'url' => FALSE,
       );
 
       $membershipSummary[$key]['premonth']['total'] = array(
         'count' => CRM_Member_BAO_Membership::getMembershipStarts($key, $preMonth, $preMonthEnd),
         'name' => $value,
+        'url' => FALSE,
       );
 
       $membershipSummary[$key]['month']['new'] = array(
         'count' => CRM_Member_BAO_Membership::getMembershipJoins($key, $monthStart, $ymd),
         'name' => $value,
+        'url' => FALSE,
       );
 
       $membershipSummary[$key]['month']['renew'] = array(
         'count' => CRM_Member_BAO_Membership::getMembershipRenewals($key, $monthStart, $ymd),
         'name' => $value,
+        'url' => FALSE,
       );
 
       $membershipSummary[$key]['month']['total'] = array(
         'count' => CRM_Member_BAO_Membership::getMembershipStarts($key, $monthStart, $ymd),
         'name' => $value,
+        'url' => FALSE,
       );
 
       $membershipSummary[$key]['year']['new'] = array(
         'count' => CRM_Member_BAO_Membership::getMembershipJoins($key, $yearStart, $ymd),
         'name' => $value,
+        'url' => FALSE,
       );
 
       $membershipSummary[$key]['year']['renew'] = array(
         'count' => CRM_Member_BAO_Membership::getMembershipRenewals($key, $yearStart, $ymd),
         'name' => $value,
+        'url' => FALSE,
       );
 
       $membershipSummary[$key]['year']['total'] = array(
         'count' => CRM_Member_BAO_Membership::getMembershipStarts($key, $yearStart, $ymd),
         'name' => $value,
+        'url' => FALSE,
       );
 
       $membershipSummary[$key]['current']['total'] = array(
         'count' => CRM_Member_BAO_Membership::getMembershipCount($key, $current),
         'name' => $value,
+        'url' => FALSE,
       );
 
       $membershipSummary[$key]['total']['total'] = array('count' => CRM_Member_BAO_Membership::getMembershipCount($key, $ymd));
@@ -139,21 +149,25 @@ class CRM_Member_Page_DashBoard extends CRM_Core_Page {
       $membershipSummary[$key]['premonth_owner']['premonth_owner'] = array(
         'count' => CRM_Member_BAO_Membership::getMembershipStarts($key, $preMonth, $preMonthEnd, 0, 1),
         'name' => $value,
+        'url' => FALSE,
       );
 
       $membershipSummary[$key]['month_owner']['month_owner'] = array(
         'count' => CRM_Member_BAO_Membership::getMembershipStarts($key, $monthStart, $ymd, 0, 1),
         'name' => $value,
+        'url' => FALSE,
       );
 
       $membershipSummary[$key]['year_owner']['year_owner'] = array(
         'count' => CRM_Member_BAO_Membership::getMembershipStarts($key, $yearStart, $ymd, 0, 1),
         'name' => $value,
+        'url' => FALSE,
       );
 
       $membershipSummary[$key]['current_owner']['current_owner'] = array(
         'count' => CRM_Member_BAO_Membership::getMembershipCount($key, $current, 0, 1),
         'name' => $value,
+        'url' => FALSE,
       );
 
       $membershipSummary[$key]['total_owner']['total_owner'] = array('count' => CRM_Member_BAO_Membership::getMembershipCount($key, $ymd, 0, 1));
@@ -210,38 +224,47 @@ class CRM_Member_Page_DashBoard extends CRM_Core_Page {
 
     $totalCount['premonth']['new'] = array(
       'count' => $newCountPreMonth,
+      'url' => FALSE,
     );
 
     $totalCount['premonth']['renew'] = array(
       'count' => $renewCountPreMonth,
+      'url' => FALSE,
     );
 
     $totalCount['premonth']['total'] = array(
       'count' => $totalCountPreMonth,
+      'url' => FALSE,
     );
 
     $totalCount['month']['new'] = array(
       'count' => $newCountMonth,
+      'url' => FALSE,
     );
 
     $totalCount['month']['renew'] = array(
       'count' => $renewCountMonth,
+      'url' => FALSE,
     );
 
     $totalCount['month']['total'] = array(
       'count' => $totalCountMonth,
+      'url' => FALSE,
     );
 
     $totalCount['year']['new'] = array(
       'count' => $newCountYear,
+      'url' => FALSE,
     );
 
     $totalCount['year']['renew'] = array(
       'count' => $renewCountYear,
+      'url' => FALSE,
     );
 
     $totalCount['year']['total'] = array(
       'count' => $totalCountYear,
+      'url' => FALSE,
     );
 
     $totalCount['current']['total'] = array(
@@ -272,32 +295,38 @@ class CRM_Member_Page_DashBoard extends CRM_Core_Page {
     //LCD add owner values
     $totalCount['premonth_owner']['premonth_owner'] = array(
       'count' => $totalCountPreMonth_owner,
+      'url' => FALSE,
       //  'url' => CRM_Utils_System::url('civicrm/member/search', "reset=1&force=1&membership_status_id=$status&start=$preMonth&end=$preMonthEnd&owner=1"),
     );
 
     $totalCount['month_owner']['month_owner'] = array(
       'count' => $totalCountMonth_owner,
+      'url' => FALSE,
       //  'url' => CRM_Utils_System::url('civicrm/member/search', "reset=1&force=1&membership_status_id=$status&start=$monthStart&end=$ymd&owner=1"),
     );
 
     $totalCount['year_owner']['year_owner'] = array(
       'count' => $totalCountYear_owner,
+      'url' => FALSE,
       //  'url' => CRM_Utils_System::url('civicrm/member/search', "reset=1&force=1&membership_status_id=$status&start=$yearStart&end=$ymd&owner=1"),
     );
 
     $totalCount['current_owner']['current_owner'] = array(
       'count' => $totalCountCurrent_owner,
+      'url' => FALSE,
       //  'url' => CRM_Utils_System::url('civicrm/member/search', "reset=1&force=1&membership_status_id=$status&owner=1"),
     );
 
     $totalCount['total_owner']['total_owner'] = array(
       'count' => $totalCountTotal_owner,
+      'url' => FALSE,
       //  'url' => CRM_Utils_System::url('civicrm/member/search', "reset=1&force=1&membership_status_id=$status&owner=1"),
     );
 
     if (!$isCurrentMonth) {
       $totalCount['total_owner']['total_owner'] = array(
         'count' => $totalCountTotal_owner,
+        'url' => FALSE,
         //  'url' => CRM_Utils_System::url('civicrm/member/search', "reset=1&force=1&membership_status_id=$status&start=&end=$ymd&owner=1"),
       );
     }