Skip to content

Commit

Permalink
Fix Recently Modified filter to include closed issues
Browse files Browse the repository at this point in the history
Fix "Hide status" property for the filter shown in my-view-page for
"Recently Modified" box. It should display closed issues.

Fixes: #22369
  • Loading branch information
cproensa authored and vboctor committed Feb 19, 2017
1 parent ee7bd20 commit dbeac73
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/filter_api.php
Expand Up @@ -2981,14 +2981,16 @@ function filter_name_valid_length( $p_name ) {
}

/**
* Create a filter for getting issues modified in the last N days
* Create a filter for getting issues modified in the last N days.
* @param integer $p_days Number of days counting from today
* @param array $p_filter Add the filter conditions over this filter array. Return a new one if null
* @return array Filter array
*/
function filter_create_recently_modified( $p_days, $p_filter = null ) {
if( null === $p_filter ) {
$p_filter = filter_get_default();
# This filter overrides default "hide status" property
$p_filter[FILTER_PROPERTY_HIDE_STATUS] = META_FILTER_NONE;
}
$c_days = (int)$p_days;
$p_filter[FILTER_PROPERTY_FILTER_BY_LAST_UPDATED_DATE] = true;
Expand Down

0 comments on commit dbeac73

Please sign in to comment.