logo       
Google Custom Search
    AddThis Social Bookmark Button

Related Msgs: audio.musicbrai...    enbd.general/20...    ietf.idr/2002-0...    java.ant-contri...    gnu.make.genera...    qplus.devel/200...    video.freevo.cv...    os.netbsd.ports...    yellowdog.gener...    xfree86.cvs/200...    search.nutch.us...    freedesktop.xse...    programming.swi...    capabilities.ge...    telephony.pbx.a...    mail.sylpheed.c...    db.firebase.por...    boot-loaders.u-...    recreation.radi...    netbsd.bugs/200...    web.zope.plone....    user-groups.lin...   

mantisbt/core bug_api.php,1.93,1.94: msg#00012

Subject: mantisbt/core bug_api.php,1.93,1.94
Update of /cvsroot/mantisbt/mantisbt/core
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16544/core

Modified Files:
        bug_api.php 
Log Message:
fix for  0005545: On resolve issue can set the "Duplicate ID" with the ID of 
current issue


Index: bug_api.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/core/bug_api.php,v
retrieving revision 1.93
retrieving revision 1.94
diff -u -d -r1.93 -r1.94
--- bug_api.php 11 Apr 2005 17:05:47 -0000      1.93
+++ bug_api.php 1 May 2005 19:04:07 -0000       1.94
@@ -722,6 +722,10 @@
                        }
                }
 
+               if( !is_blank( $p_bug_data->duplicate_id ) && ( 
$p_bug_data->duplicate_id != 0 ) && ( $p_bug_id == $p_bug_data->duplicate_id ) 
) {
+                       trigger_error( ERROR_BUG_DUPLICATE_SELF, ERROR );  # 
never returns
+           }
+
                $t_old_data = bug_get( $p_bug_id, true );
 
                $t_bug_table = config_get( 'mantis_bug_table' );
@@ -1116,6 +1120,9 @@
 
                if( !is_blank( $p_duplicate_id ) && ( $p_duplicate_id != 0 ) ) {
                        # MASC RELATIONSHIP
+                       if ( $p_bug_id == $p_duplicate_id ) {
+                           trigger_error( ERROR_BUG_DUPLICATE_SELF, ERROR );  
# never returns
+                       }
 
                        # the related bug exists...
                        bug_ensure_exists( $p_duplicate_id );



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20



Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>