Package: mantis Version: 0.19.2-5sarge1 Severity: normal E.g. clicking on "My View", "Reporter" gives an error message. The attached patch fixes this problem. In a new part of /usr/share/mantis/gui/view_filters_page.php there is twice a "+" instead of a newline. Looks like a typo.
Cheers Harry
--- /usr/share/mantis/gui/view_filters_page.php.orig 2006-01-19 13:35:18.101731052 +0100 +++ /usr/share/mantis/gui/view_filters_page.php 2006-01-19 13:36:03.312067729 +0100 @@ -35,11 +35,13 @@ $t_custom_fields = custom_field_get_ids( $t_project_id ); foreach ( $t_custom_fields as $t_cfid ) { - $t_field_info = custom_field_cache_row( $t_cfid, true );+ if ( $t_field_info['access_level_r'] <= $t_current_user_access_level ) { + $t_field_info = custom_field_cache_row( $t_cfid, true ); + if ( $t_field_info['access_level_r'] <= $t_current_user_access_level ) { $t_accessible_custom_fields_ids[] = $t_cfid; $t_accessible_custom_fields_names[] = $t_field_info['name']; $t_accessible_custom_fields_values[] = custom_field_distinct_values( $t_cfid, $t_project_id ); - $t_fields[] = "custom_" . $t_field_info['name'];+ } + $t_fields[] = "custom_" . $t_field_info['name']; + } } if ( sizeof( $t_accessible_custom_fields_ids ) > 0 ) {