From dbeac731df2f8f11028f1a3747addf0c602cc1ac Mon Sep 17 00:00:00 2001 From: Carlos Proensa Date: Sun, 19 Feb 2017 19:23:49 +0100 Subject: [PATCH] Fix Recently Modified filter to include closed issues Fix "Hide status" property for the filter shown in my-view-page for "Recently Modified" box. It should display closed issues. Fixes: #22369 --- core/filter_api.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/filter_api.php b/core/filter_api.php index 1488a8b52d..72fe0d6040 100644 --- a/core/filter_api.php +++ b/core/filter_api.php @@ -2981,7 +2981,7 @@ 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 @@ -2989,6 +2989,8 @@ function filter_name_valid_length( $p_name ) { 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;