Skip to content

Commit

Permalink
Enh #4137: [bugtracker] Support a simple "view" URL (vboctor)
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@2733 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
vboctor committed Jul 20, 2004
1 parent 0d9e5ea commit f4ad4c6
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 4 deletions.
6 changes: 3 additions & 3 deletions core/string_api.php
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: string_api.php,v 1.53 2004-07-10 23:38:02 vboctor Exp $
# $Id: string_api.php,v 1.54 2004-07-20 15:31:03 vboctor Exp $
# --------------------------------------------------------

$t_core_dir = dirname( __FILE__ ).DIRECTORY_SEPARATOR;
Expand Down Expand Up @@ -331,7 +331,7 @@ function string_get_bug_view_link( $p_bug_id, $p_user_id = null, $p_detail_info
# return the name and GET parameters of a bug VIEW page for the given bug
# account for the user preference and site override
function string_get_bug_view_url( $p_bug_id, $p_user_id = null ) {
return string_get_bug_view_page( $p_user_id ) . '?bug_id=' . bug_format_id( $p_bug_id );
return 'view.php?id=' . $p_bug_id;
}

# --------------------
Expand Down Expand Up @@ -362,7 +362,7 @@ function string_get_bug_update_link( $p_bug_id, $p_user_id = null ) {
# return the name and GET parameters of a bug UPDATE page for the given bug
# account for the user preference and site override
function string_get_bug_update_url( $p_bug_id, $p_user_id = null ) {
return string_get_bug_update_page( $p_user_id ) . '?bug_id=' . bug_format_id( $p_bug_id );
return string_get_bug_update_page( $p_user_id ) . '?bug_id=' . $p_bug_id;
}

# --------------------
Expand Down
3 changes: 2 additions & 1 deletion doc/ChangeLog
Expand Up @@ -2,11 +2,12 @@ Mantis ChangeLog

2004.08.xx - 0.19.0xx

- 0004137: [bugtracker] Support a simple "view" URL (vboctor)
- 0003880: [filters] Ordering doesnt take last_updated into account
- 0004073: [filters] Edit filter page now too wide. 'Apply filter' button is drawn off screen.
- 0004093: [filters] Custom field values are a larger type size in view_all_bug_page
- 0004083: [sponsorships] Users without email address must not be able to sponsor issues (thraxisp)
- 0004122: [relationships] Upgrade script seems to swap the duplicate relationship (masc)
- 0004083: [sponsorships] Users without email address must not be able to sponsor issues (thraxisp)
- Updated Brazilian Portuguese language.

2004.07.20 - 0.19.0a2
Expand Down
24 changes: 24 additions & 0 deletions view.php
@@ -0,0 +1,24 @@
<?php
# Mantis - a php based bugtracking system
# Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org
# Copyright (C) 2002 - 2004 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: view.php,v 1.1 2004-07-20 15:31:04 vboctor Exp $
# --------------------------------------------------------
?>
<?php
require_once( 'core.php' );

$t_core_path = config_get( 'core_path' );

require_once( $t_core_path.'string_api.php' );
?>
<?php
// Copy 'id' parameter into 'bug_id' so it is found by the simple/advanced view page.
$_GET['bug_id'] = gpc_get_int( 'id' );

include string_get_bug_view_page( $p_user_id );
?>

0 comments on commit f4ad4c6

Please sign in to comment.