Permalink
Browse files

Config report: retrieval of saved project filter does not work

When retrieving a saved filter from the cookie in adm_config_report.php
the saved project id is not reflected in the filter's selection list:
'All Projects' is always selected instead of the actual project. This
value should only be picked as default when the project id does not
exist.

This is due to a missing negation in the check for project's existence.

Fixes  #15691
  • Loading branch information...
1 parent dea0f71 commit b55fc0dcb0de57f6b22f21590b5236537b5a127a @dregad dregad committed Mar 14, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 adm_config_report.php
@@ -174,7 +174,7 @@ function print_option_list_from_array( $p_array, $p_filter_value ) {
$t_filter_project_value = $t_cookie_contents[1];
$t_filter_config_value = $t_cookie_contents[2];
- if( $t_filter_project_value != META_FILTER_NONE && project_exists( $t_filter_project_value ) ) {
+ if( $t_filter_project_value != META_FILTER_NONE && !project_exists( $t_filter_project_value ) ) {
$t_filter_project_value = ALL_PROJECTS;
}
}

0 comments on commit b55fc0d

Please sign in to comment.