From 89e1e29ecb2128c8e37a4098e2226da40ac16380 Mon Sep 17 00:00:00 2001 From: Victor Boctor Date: Sun, 18 Jul 2004 13:59:15 +0000 Subject: [PATCH] Fixed a problem where resolving an issue causing "issue 0 not found". git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@2716 f5dc347c-c33d-0410-90a0-b07cc1902cb9 --- core/bug_api.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/bug_api.php b/core/bug_api.php index 9c70676f28..c558b00e61 100644 --- a/core/bug_api.php +++ b/core/bug_api.php @@ -6,7 +6,7 @@ # See the README and LICENSE files for details # -------------------------------------------------------- - # $Id: bug_api.php,v 1.71 2004-07-18 00:07:44 vboctor Exp $ + # $Id: bug_api.php,v 1.72 2004-07-18 13:59:15 vboctor Exp $ # -------------------------------------------------------- $t_core_dir = dirname( __FILE__ ).DIRECTORY_SEPARATOR; @@ -1108,7 +1108,7 @@ function bug_close( $p_bug_id, $p_bugnote_text = '' ) { function bug_resolve( $p_bug_id, $p_resolution, $p_fixed_in_version = '', $p_bugnote_text = '', $p_duplicate_id = null, $p_handler_id = null ) { $p_bugnote_text = trim( $p_bugnote_text ); - if( !is_blank( $p_duplicate_id ) ) { + if( !is_blank( $p_duplicate_id ) && ( $p_duplicate_id != 0 ) ) { # MASC RELATIONSHIP # the related bug exists...