Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* bug_add_advanced_page.php: redirect back after forcing project sele…
…ction

* bug_add_page.php: redirect back after forcing project selection


git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@1500 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
Julian Fitzell committed Sep 16, 2002
1 parent 676b4cf commit 1e89163
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions bug_add_advanced_page.php
Expand Up @@ -11,12 +11,12 @@
<?php require_once( 'core.php' ) ?>
<?php login_cookie_check() ?>
<?php
# these pages are invalid for the 'All Project' selection
if ( '0000000' == $g_project_cookie_val ) {
print_header_redirect( 'login_select_proj_page.php' );
# this page is invalid for the 'All Project' selection
if ( 0 == helper_get_current_project() ) {
print_header_redirect( 'login_select_proj_page.php?ref=' . get_report_redirect_url( true ) );
}

if ( SIMPLE_ONLY == $g_show_report ) {
if ( SIMPLE_ONLY == config_get( 'show_report' ) ) {
print_header_redirect ( 'bug_add_page.php' );
}

Expand Down
8 changes: 4 additions & 4 deletions bug_add_page.php
Expand Up @@ -11,12 +11,12 @@
<?php require_once( 'core.php' ) ?>
<?php login_cookie_check() ?>
<?php
# these pages are invalid for the 'All Project' selection
if ( '0000000' == $g_project_cookie_val ) {
print_header_redirect( 'login_select_proj_page.php' );
# this page is invalid for the 'All Project' selection
if ( 0 == helper_get_current_project() ) {
print_header_redirect( 'login_select_proj_page.php?ref=' . get_report_redirect_url( true ) );
}

if ( ADVANCED_ONLY == $g_show_report ) {
if ( ADVANCED_ONLY == config_get( 'show_report' ) ) {
print_header_redirect ( 'bug_add_advanced_page.php' );
}

Expand Down

0 comments on commit 1e89163

Please sign in to comment.