Skip to content

Commit

Permalink
Added checks to redirect users to advanced or simple views
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@87 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
Kenzaburo Ito committed Dec 17, 2000
1 parent bda29a8 commit d07d902
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 7 deletions.
4 changes: 3 additions & 1 deletion ChangeLog
Expand Up @@ -16,7 +16,7 @@ To Do:
* Move as much of the config_inc.php varaibles into a database table.
Then build a nice interface into it.

12.XX.2000 - 0.11.2
12.XX.2000 - 0.12.0

* Tweaked the string_edit() function
* Added $g_show_login_date_info adn the ability to show who is logged in and
Expand All @@ -32,6 +32,8 @@ To Do:
* Added support to show bugs reported by and assigned to the logged in user.
* Added view_user_assigned_bug_page.php3 and view_user_reported_bug_page.php3
and the corresponding global variables
* Tweaked the bug update and bugnote update and delete functions to redirect
to the user chosen default viewing level page

12.15.2000 - 0.11.1

Expand Down
11 changes: 10 additions & 1 deletion bug_update.php3
Expand Up @@ -34,7 +34,12 @@
<? print_css( $g_css_include_file ) ?>
<?
if ( $result ) {
print_meta_redirect( "$g_view_bug_page?f_id=$f_id", $g_wait_time );
if ( get_current_user_profile_field( "advanced_view" )=="on" ) {
print_meta_redirect( "$g_view_bug_advanced_page?f_id=$f_id", $g_wait_time );
}
else {
print_meta_redirect( "$g_view_bug_page?f_id=$f_id", $g_wait_time );
}
}
?>
<? include( $g_meta_include_file ) ?>
Expand All @@ -58,7 +63,11 @@
}
?>
<p>
<? if ( get_current_user_profile_field( "advanced_view" )=="on" ) { ?>
<a href="<? echo $g_view_bug_advanced_page ?>?f_id=<? echo $f_id ?>">Click here to proceed</a>
<? } else { ?>
<a href="<? echo $g_view_bug_page ?>?f_id=<? echo $f_id ?>">Click here to proceed</a>
<? } ?>
</div>

<? print_footer() ?>
Expand Down
13 changes: 11 additions & 2 deletions bugnote_add.php3
Expand Up @@ -57,7 +57,12 @@
<? print_css( $g_css_include_file ) ?>
<?
if ( $result ) {
print_meta_redirect( "$g_view_bug_page?f_id=$f_bug_id", $g_wait_time );
if ( get_current_user_profile_field( "advanced_view" )=="on" ) {
print_meta_redirect( "$g_view_bug_advanced_page?f_id=$f_bug_id", $g_wait_time );
}
else {
print_meta_redirect( "$g_view_bug_page?f_id=$f_bug_id", $g_wait_time );
}
}
?>
<? include( $g_meta_include_file ) ?>
Expand All @@ -81,7 +86,11 @@
}
?>
<p>
<a href="<? echo $g_view_bug_page ?>?f_id=<? echo $f_bug_id ?>">Click here to proceed</a>
<? if ( get_current_user_profile_field( "advanced_view" )=="on" ) { ?>
<a href="<? echo $g_view_bug_advanced_page ?>?f_id=<? echo $f_id ?>">Click here to proceed</a>
<? } else { ?>
<a href="<? echo $g_view_bug_page ?>?f_id=<? echo $f_id ?>">Click here to proceed</a>
<? } ?>
</div>

<? print_footer() ?>
Expand Down
12 changes: 11 additions & 1 deletion bugnote_delete.php3
Expand Up @@ -23,7 +23,12 @@
<? print_css( $g_css_include_file ) ?>
<?
if ( $result ) {
print_meta_redirect( "$g_view_bug_page?f_id=$f_id", $g_wait_time );
if ( get_current_user_profile_field( "advanced_view" )=="on" ) {
print_meta_redirect( "$g_view_bug_advanced_page?f_id=$f_bug_id", $g_wait_time );
}
else {
print_meta_redirect( "$g_view_bug_page?f_id=$f_bug_id", $g_wait_time );
}
}
?>
<? include( $g_meta_include_file ) ?>
Expand All @@ -46,8 +51,13 @@
echo $query;
}
?>

<p>
<? if ( get_current_user_profile_field( "advanced_view" )=="on" ) { ?>
<a href="<? echo $g_view_bug_advanced_page ?>?f_id=<? echo $f_id ?>">Click here to proceed</a>
<? } else { ?>
<a href="<? echo $g_view_bug_page ?>?f_id=<? echo $f_id ?>">Click here to proceed</a>
<? } ?>
</div>

<? print_footer() ?>
Expand Down
2 changes: 1 addition & 1 deletion config_inc.php
Expand Up @@ -265,6 +265,6 @@

#--------------------
#version
$g_mantis_version = "0.11.2";
$g_mantis_version = "0.12.0";
#--------------------
?>
2 changes: 1 addition & 1 deletion summary_page.php3
Expand Up @@ -142,7 +142,7 @@
longest open bug
</td>
<td width=50%>
<? if ( get_current_user_profile_field( "advanced_view" )==on ) { ?>
<? if ( get_current_user_profile_field( "advanced_view" )=="on" ) { ?>
<a href="<? echo $g_view_bug_advanced_page ?>?f_id=<? echo $t_bug_id ?>"><? echo $t_bug_id ?></a>
<? } else {?>
<a href="<? echo $g_view_bug_page ?>?f_id=<? echo $t_bug_id ?>"><? echo $t_bug_id ?></a>
Expand Down

0 comments on commit d07d902

Please sign in to comment.