Skip to content

Commit

Permalink
bug status options were not properly set if bug_update* was accessed
Browse files Browse the repository at this point in the history
firectly from view_all and project = 'All Projects'


git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@3050 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
thraxisp committed Oct 13, 2004
1 parent 4a32eff commit 186b523
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions bug_update_advanced_page.php
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: bug_update_advanced_page.php,v 1.82 2004-10-02 14:53:02 thraxisp Exp $
# $Id: bug_update_advanced_page.php,v 1.83 2004-10-13 23:35:07 thraxisp Exp $
# --------------------------------------------------------
?>
<?php
Expand Down Expand Up @@ -228,9 +228,9 @@
<?php echo lang_get( 'status' ) ?>
</td>
<td bgcolor="<?php echo get_status_color( $t_bug->status ) ?>">
<?php print_status_option_list( 'status', $t_bug->status, true,
<?php print_status_option_list( 'status', $t_bug->status,
( $t_bug->reporter_id == auth_get_current_user_id() &&
( ON == config_get( 'allow_reporter_close' ) ) ) ) ?>
( ON == config_get( 'allow_reporter_close' ) ) ), $t_bug->project_id ) ?>
</td>

<?php
Expand Down
6 changes: 3 additions & 3 deletions bug_update_page.php
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: bug_update_page.php,v 1.86 2004-10-02 14:53:02 thraxisp Exp $
# $Id: bug_update_page.php,v 1.87 2004-10-13 23:35:07 thraxisp Exp $
# --------------------------------------------------------
?>
<?php
Expand Down Expand Up @@ -226,9 +226,9 @@
<?php echo lang_get( 'status' ) ?>
</td>
<td bgcolor="<?php echo get_status_color( $t_bug->status ) ?>">
<?php print_status_option_list( 'status', $t_bug->status, true,
<?php print_status_option_list( 'status', $t_bug->status,
( $t_bug->reporter_id == auth_get_current_user_id() &&
( ON == config_get( 'allow_reporter_close' ) ) ) ) ?>
( ON == config_get( 'allow_reporter_close' ) ) ), $t_bug->project_id ) ?>
</td>

<?php
Expand Down
6 changes: 3 additions & 3 deletions core/print_api.php
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: print_api.php,v 1.105 2004-10-01 18:08:23 thraxisp Exp $
# $Id: print_api.php,v 1.106 2004-10-13 23:35:07 thraxisp Exp $
# --------------------------------------------------------

$t_core_dir = dirname( __FILE__ ).DIRECTORY_SEPARATOR;
Expand Down Expand Up @@ -636,8 +636,8 @@ function get_status_option_list( $p_user_auth = 0, $p_current_value = 0, $p_show
}
# --------------------
# print the status option list for the bug_update pages
function print_status_option_list( $p_select_label, $p_current_value = 0, $p_allow_close = false ) {
$t_current_auth = access_get_project_level();
function print_status_option_list( $p_select_label, $p_current_value = 0, $p_allow_close = false, $p_project_id = null ) {
$t_current_auth = access_get_project_level( $p_project_id );

$t_enum_list = get_status_option_list( $t_current_auth, $p_current_value, true, $p_allow_close );

Expand Down

0 comments on commit 186b523

Please sign in to comment.