Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added 'Assign to Reporter' button to 'View Bug' window. We may need t…
…o add a configuration option to control displaying this button. git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@2331 f5dc347c-c33d-0410-90a0-b07cc1902cb9
- Loading branch information
Jeroen Latour
committed
Feb 8, 2004
1 parent
d45dbbd
commit c35a69d
Showing
5 changed files
with
63 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
# Mantis - a php based bugtracking system | ||
# Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org | ||
# Copyright (C) 2002 - 2003 Mantis Team - mantisbt-dev@lists.sourceforge.net | ||
# This program is distributed under the terms and conditions of the GPL | ||
# See the README and LICENSE files for details | ||
|
||
# -------------------------------------------------------- | ||
# $Id: bug_assign_reporter.php,v 1.1 2004-02-08 15:56:34 jlatour Exp $ | ||
# -------------------------------------------------------- | ||
?> | ||
<?php | ||
# Assign bug to user then redirect to viewing page | ||
?> | ||
<?php | ||
require_once( 'core.php' ); | ||
|
||
$t_core_path = config_get( 'core_path' ); | ||
|
||
require_once( $t_core_path.'bug_api.php' ); | ||
?> | ||
<?php | ||
$f_bug_id = gpc_get_int( 'bug_id' ); | ||
|
||
access_ensure_bug_level( config_get( 'update_bug_threshold' ), $f_bug_id ); | ||
access_ensure_bug_level( config_get( 'handle_bug_threshold' ), $f_bug_id ); | ||
|
||
bug_assign( $f_bug_id, bug_get_field( $f_bug_id, 'reporter_id') ); | ||
|
||
print_successful_redirect_to_bug( $f_bug_id ); | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters