Answers.Body: <p>You would need to change the code. But there is another way to get the Activities on your dashboard.
  Go to Reports, select Contact Reports and then Activities. If you then set all filters as you wish and tick the 'Available for Dashboard' option, and save the report as "My Desired Activities" (or any other name :-)) you should have a new dashlet available for your dashboard with your settings for activities?</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-11-22T22:42:09.787Z
Answers.Text: Thanks, Erik. I know how to use Reports to do that. But I'd like to change the default one as it has filters and sorting functionality. Do you know where I need to change the code by any chance? Thanks!
Answers.UserDisplayName: George Zhao
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-11-23T09:43:00.170Z
Answers.Text: Probably CRM/Dashlet/Page/Activity.php, but check!
Answers.UserDisplayName: ErikH - CiviCooP
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-11-19T09:39:47.007Z
Answers.LastActivityDate: 2015-11-19T09:39:47.007Z
Answers.UserDisplayName: ErikH - CiviCooP
Answers.Body: <p>I have found the file I need to modify.
  CRM/Activity/BAO/Activity.php</p>
  
  <p>Change</p>
  
  <p>if ($input['context'] != 'activity') {
        $commonClauses[] = "civicrm_activity.status_id = 1 ;
      }</p>
  
  <p>to </p>
  
  <p>if ($input['context'] != 'activity') {
         $commonClauses[] = " (civicrm_activity.status_id = 1 or civicrm_activity.status_id = 7 )"; 
      }</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-11-26T08:06:23.483Z
Answers.Text: I would not change that, you are then changing a core BAO function and other stuff might do different things too. My recommendation would be to create an extension and create your own activity report in there (and you could copy and change the relevant BAO function in your extension).
Answers.UserDisplayName: ErikH - CiviCooP
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-11-25T04:23:47.107Z
Answers.LastActivityDate: 2015-11-26T01:27:50.643Z
Answers.LastEditDate: 2015-11-26T01:27:50.643Z
Answers.UserDisplayName: George Zhao
Body: <p>CiviCRM 4.6.9.  Drupal 7.30</p>
  
  <p>How can I change the default Activity dashlet to include activities other than scheduled activities? By default, it only shows scheduled activities</p>
  
Tags: <dashlet>
Title: How to change the default Activity dashlet to include activities other than "scheduled"?
ThreadText: # How to change the default Activity dashlet to include activities other than "scheduled"?
  
  (Asked by: username_0 on 2015-11-19)
  
  CiviCRM 4.6.9. Drupal 7.30
  
  How can I change the default Activity dashlet to include activities other than scheduled activities? By default, it only shows scheduled activities
  
  **Tags:** dashlet
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2015-11-19. Score: 2
  
  You would need to change the code. But there is another way to get the Activities on your dashboard.
  Go to Reports, select Contact Reports and then Activities. If you then set all filters as you wish and tick the 'Available for Dashboard' option, and save the report as "My Desired Activities" (or any other name :-)) you should have a new dashlet available for your dashboard with your settings for activities?
  
  > **Comments:**
  > **username_0**: Thanks, Erik. I know how to use Reports to do that. But I'd like to change the default one as it has filters and sorting functionality. Do you know where I need to change the code by any chance? Thanks!  
  > **username_1**: Probably CRM/Dashlet/Page/Activity.php, but check!  
  
  ---
  
  ### Answer by username_0 on 2015-11-25. Score: 0
  
  I have found the file I need to modify.
  CRM/Activity/BAO/Activity.php
  
  Change
  
  if ($input['context'] != 'activity') {
  $commonClauses[] = "civicrm\_activity.status\_id = 1 ;
  }
  
  to
  
  if ($input['context'] != 'activity') {
  $commonClauses[] = " (civicrm\_activity.status\_id = 1 or civicrm\_activity.status\_id = 7 )";
  }
  
  > **Comments:**
  > **username_1**: I would not change that, you are then changing a core BAO function and other stuff might do different things too. My recommendation would be to create an extension and create your own activity report in there (and you could copy and change the relevant BAO function in your extension).  
  
  ---
  
  