Skip to content

Commit

Permalink
Fix infinite 302 redirect when reporting an issue
Browse files Browse the repository at this point in the history
If the user is currently on “All Projects” and their default
project is disabled, then clicking “Report Issue” would result
in an infinite 302 redirect loop

Fixes #21157
  • Loading branch information
wapznw authored and vboctor committed Sep 5, 2016
1 parent 18653ee commit 9a7ae21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bug_report_page.php
Expand Up @@ -138,8 +138,8 @@
}

if( ( ALL_PROJECTS == $t_project_id || project_exists( $t_project_id ) )
&& $t_project_id != $t_current_project
) {
&& $t_project_id != $t_current_project
&& project_get_field( $t_project_id, 'enabled' ) ) {
helper_set_current_project( $t_project_id );
# Reloading the page is required so that the project browser
# reflects the new current project
Expand Down

0 comments on commit 9a7ae21

Please sign in to comment.