Answers.Body: <p>Yes this is a bug. While it's picking up the status for the search the search form field for status isn't getting filled in so it gets lost on the next page for export. The url should be using case_type_id and status_type_id instead of type and status. Can you file an issue at <a href="https://lab.civicrm.org/dev/core/-/issues/new" rel="nofollow noreferrer">https://lab.civicrm.org/dev/core/-/issues/new</a> and reference this stackexchange post?</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-02-13T19:59:30.623Z
Answers.Text: Sure, will do. thanks!
Answers.UserDisplayName: zip
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-02-24T00:32:30.217Z
Answers.Text: https://lab.civicrm.org/dev/core/-/issues/4126 - fixed in 5.60.0
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-02-13T19:53:42.610Z
Answers.LastActivityDate: 2023-02-13T19:53:42.610Z
Answers.UserDisplayName: Demerit
Body: <p>If I start at the CiviCase dashboard, select &quot;All Cases&quot;, then select a Status - I get the search results that I would expect. Something like all the cases of Type X that have status &quot;Awarded&quot;</p>
  <p>If I select All, and then Export Cases from the Actions menu, it exports all the cases of any status or type.</p>
  <p>The export works as expected from any other search or if I use &quot;My Cases&quot; from the Case Dashboard. I'm thinking this must be a bug, but I'm unsure!</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-02-13T18:35:03.633Z
Comments.Text: Can you describe what you mean by Export? There isn't an export directly from the dashboard. There is from Find Cases but it works there if you choose status so I'm not sure which export you mean.
Comments.UserDisplayName: Demerit
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-02-13T19:26:14.473Z
Comments.Text: From the dashboard, if I click on the value for a particular award status, it takes me to a page that is more or less a search page. Here's the url:
  /civicrm/case/search?reset=1&force=1&status=6&type=3&case_owner=1
  
  This is where the Actions menu is.
Comments.UserDisplayName: zip
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-02-13T19:53:39.327Z
Comments.Text: Ok I see what you mean. Yes this is a bug.
Comments.UserDisplayName: Demerit
Tags: <civicase><export>
Title: CiviCase Dashboard exports all cases instead of the results
ThreadText: # CiviCase Dashboard exports all cases instead of the results
  
  (Asked by: username_0 on 2023-02-13)
  
  If I start at the CiviCase dashboard, select "All Cases", then select a Status - I get the search results that I would expect. Something like all the cases of Type X that have status "Awarded"
  
  If I select All, and then Export Cases from the Actions menu, it exports all the cases of any status or type.
  
  The export works as expected from any other search or if I use "My Cases" from the Case Dashboard. I'm thinking this must be a bug, but I'm unsure!
  
  **Tags:** civicase, export
  
  > **Comments:**
  > **username_1**: Can you describe what you mean by Export? There isn't an export directly from the dashboard. There is from Find Cases but it works there if you choose status so I'm not sure which export you mean.  
  > **username_0**: From the dashboard, if I click on the value for a particular award status, it takes me to a page that is more or less a search page. Here's the url: /civicrm/case/search?reset=1&force=1&status=6&type=3&case_owner=1  This is where the Actions menu is.  
  > **username_1**: Ok I see what you mean. Yes this is a bug.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2023-02-13. Score: 1 | Accepted answer
  
  Yes this is a bug. While it's picking up the status for the search the search form field for status isn't getting filled in so it gets lost on the next page for export. The url should be using case\_type\_id and status\_type\_id instead of type and status. Can you file an issue at <https://lab.civicrm.org/dev/core/-/issues/new> and reference this stackexchange post?
  
  > **Comments:**
  > **username_0**: Sure, will do. thanks!  
  > **username_1**: https://lab.civicrm.org/dev/core/-/issues/4126 - fixed in 5.60.0  
  
  ---
  
  