Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix #3879: Empty entry in project select field can cause bugs to be m…
…oved to non-existing project.

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@2578 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
int2str committed May 26, 2004
1 parent 191e9de commit 2a94912
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
7 changes: 5 additions & 2 deletions bug_actiongroup_page.php
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: bug_actiongroup_page.php,v 1.36 2004-05-26 04:44:58 int2str Exp $
# $Id: bug_actiongroup_page.php,v 1.37 2004-05-26 05:03:51 int2str Exp $
# --------------------------------------------------------
?>
<?php
Expand All @@ -25,6 +25,7 @@
}

$t_finished = false;
$t_request = '';
switch ( $f_action ) {
# Use a simple confirmation page, if close or delete...
case 'CLOSE' :
Expand Down Expand Up @@ -131,7 +132,9 @@
}

#other forms use the same function to display the list
print_enum_string_option_list( $t_request, FIXED );
if ( $t_request > '' ) {
print_enum_string_option_list( $t_request, FIXED );
}
?>
</select>
</td>
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.81 2004-05-26 03:22:16 int2str Exp $
# $Id: print_api.php,v 1.82 2004-05-26 05:03:53 int2str Exp $
# --------------------------------------------------------

$t_core_dir = dirname( __FILE__ ).DIRECTORY_SEPARATOR;
Expand Down Expand Up @@ -361,15 +361,15 @@ function print_project_option_list( $p_project_id = null, $p_include_all_project
if ( $p_include_all_projects ) {
PRINT '<option value="' . ALL_PROJECTS . '"';
check_selected( $p_project_id, ALL_PROJECTS );
PRINT '>' . lang_get( 'all_projects' ) . '</option>';
PRINT '>' . lang_get( 'all_projects' ) . '</option>' . "\n";
}

$t_project_count = count( $t_project_ids );
for ($i=0;$i<$t_project_count;$i++) {
$t_id = $t_project_ids[$i];
PRINT "<option value=\"$t_id\"";
check_selected( $p_project_id, $t_id );
PRINT '>' . string_display( project_get_field( $t_id, 'name' ) ) . '</option>';
PRINT '>' . string_display( project_get_field( $t_id, 'name' ) ) . '</option>' . "\n";
}
}
# --------------------
Expand Down
1 change: 1 addition & 0 deletions doc/ChangeLog
Expand Up @@ -48,6 +48,7 @@ Mantis ChangeLog
* Fix #3852: OK button in View Issues page is not localised
* Fix #3853: Filters sometime generate an invalid query (partial fix).
* Fix #3866: URLs that include bookmark are not hyperlinked correctly.
* Fix #3879: Empty entry in project select field can cause bugs to be moved to non-existing project.
* New Config: set_view_status_threshold (default REPORTER) - threshold needed to set the view status while reporting a bug / bugnote.
* New Config: change_view_status_threshold (default UPDATER) - threshold needed to update the view status while updating a bug / bugnote.
* New Config: view_handler_threshold (default VIEWER) - threshold needed to view the bug handler (now works for emails only).
Expand Down

0 comments on commit 2a94912

Please sign in to comment.